Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.operator.aggregation;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
public final class InternalAggregationFunction
    private final String name;
    private final List<TypeparameterTypes;
    private final Type intermediateType;
    private final Type finalType;
    private final boolean decomposable;
    private final boolean approximate;
    private final GenericAccumulatorFactoryBinder factory;
    public InternalAggregationFunction(String nameList<TypeparameterTypesType intermediateTypeType finalTypeboolean decomposableboolean approximateGenericAccumulatorFactoryBinder factory)
    {
        this. = checkNotNull(name"name is null");
        checkArgument(!name.isEmpty(), "name is empty");
        this. = ImmutableList.copyOf(checkNotNull(parameterTypes"parameterTypes is null"));
        this. = checkNotNull(intermediateType"intermediateType is null");
        this. = checkNotNull(finalType"finalType is null");
        this. = decomposable;
        this. = approximate;
        this. = checkNotNull(factory"factory is null");
    }
    public String name()
    {
        return ;
    }
    public List<TypegetParameterTypes()
    {
        return ;
    }
    public Type getFinalType()
    {
        return ;
    }
    public Type getIntermediateType()
    {
        return ;
    }

    
Indicates that the aggregation can be decomposed, and run as partial aggregations followed by a final aggregation to combine the intermediate results
    public boolean isDecomposable()
    {
        return ;
    }
    public boolean isApproximate()
    {
        return ;
    }
    public AccumulatorFactory bind(List<IntegerinputChannelsOptional<IntegermaskChannelOptional<IntegersampleWeightChanneldouble confidence)
    {
        return .bind(inputChannelsmaskChannelsampleWeightChannelconfidence);
    }
New to GrepCode? Check out our FAQ X