Class AggregateResultFactory


  • public class AggregateResultFactory
    extends java.lang.Object
    Easy factory pattern to build AggregateFunction.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AggregateResult getAggrResultByName​(java.lang.String aggrFuncName, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType)  
      static AggregateResult getAggrResultByName​(java.lang.String aggrFuncName, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, boolean ascending)
      construct AggregateFunction using factory pattern.
      static AggregateResult getAggrResultByType​(AggregationType aggregationType, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, boolean ascending)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAggrResultByName

        public static AggregateResult getAggrResultByName​(java.lang.String aggrFuncName,
                                                          org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                                          boolean ascending)
        construct AggregateFunction using factory pattern.
        Parameters:
        aggrFuncName - function name.
        dataType - data type.
      • getAggrResultByName

        public static AggregateResult getAggrResultByName​(java.lang.String aggrFuncName,
                                                          org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType)
      • getAggrResultByType

        public static AggregateResult getAggrResultByType​(AggregationType aggregationType,
                                                          org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                                          boolean ascending)