Class InFilter

  • All Implemented Interfaces:
    java.lang.Comparable<QueryFilter>

    public class InFilter
    extends FunctionFilter
    operator 'in' & 'not in'
    • Field Detail

      • values

        protected java.util.Set<java.lang.String> values
    • Constructor Detail

      • InFilter

        public InFilter​(FilterConstant.FilterType filterType,
                        org.apache.iotdb.commons.path.PartialPath path,
                        boolean not,
                        java.util.Set<java.lang.String> values)
        In Filter Constructor.
        Parameters:
        filterType - filter Type
        path - path
        values - values
    • Method Detail

      • getValues

        public java.util.Set<java.lang.String> getValues()
      • getNot

        public boolean getNot()
      • transformToSingleQueryFilter

        protected org.apache.iotdb.tsfile.utils.Pair<org.apache.iotdb.tsfile.read.expression.IUnaryExpression,​java.lang.String> transformToSingleQueryFilter​(java.util.Map<org.apache.iotdb.commons.path.PartialPath,​org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> pathTSDataTypeHashMap)
                                                                                                                                                            throws StatementAnalyzeException,
                                                                                                                                                                   org.apache.iotdb.commons.exception.MetadataException
        Description copied from class: QueryFilter
        it will be used in BasicFunction Operator.
        Overrides:
        transformToSingleQueryFilter in class QueryFilter
        Returns:
        - pair.left: UnaryQueryFilter constructed by its one child; pair.right: Path represented by this child.
        Throws:
        org.apache.iotdb.commons.exception.MetadataException - exception in filter transforming
        StatementAnalyzeException
      • showTree

        public java.lang.String showTree​(int spaceNum)
        Overrides:
        showTree in class QueryFilter
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class QueryFilter
      • serialize

        public void serialize​(java.nio.ByteBuffer byteBuffer)
        Overrides:
        serialize in class FunctionFilter
      • deserialize

        public static InFilter deserialize​(java.nio.ByteBuffer byteBuffer)