Class RawDataQueryPlan

    • Constructor Detail

      • RawDataQueryPlan

        public RawDataQueryPlan()
    • Method Detail

      • deduplicate

        public void deduplicate​(PhysicalGenerator physicalGenerator)
                         throws org.apache.iotdb.commons.exception.MetadataException
        Specified by:
        deduplicate in class QueryPlan
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • getExpression

        public org.apache.iotdb.tsfile.read.expression.IExpression getExpression()
      • updateDeviceMeasurementsUsingExpression

        public void updateDeviceMeasurementsUsingExpression​(org.apache.iotdb.tsfile.read.expression.IExpression expression)
      • getDeduplicatedPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getDeduplicatedPaths()
      • addDeduplicatedPaths

        public void addDeduplicatedPaths​(org.apache.iotdb.commons.path.PartialPath path)
      • getDeduplicatedDataTypes

        public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getDeduplicatedDataTypes()
      • setDeduplicatedPathsAndUpdate

        public void setDeduplicatedPathsAndUpdate​(java.util.List<org.apache.iotdb.commons.path.PartialPath> deduplicatedPaths)
        used for AlignByDevice Query, the query is executed by each device, So we only maintain measurements of current device.
      • setDeduplicatedPaths

        public void setDeduplicatedPaths​(java.util.List<org.apache.iotdb.commons.path.PartialPath> deduplicatedPaths)
      • getAllMeasurementsInDevice

        public java.util.Set<java.lang.String> getAllMeasurementsInDevice​(java.lang.String device)
      • addFilterPathInDeviceToMeasurements

        public void addFilterPathInDeviceToMeasurements​(org.apache.iotdb.tsfile.read.common.Path path)
      • getDeviceToMeasurements

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getDeviceToMeasurements()
      • groupVectorPaths

        public void groupVectorPaths​(PhysicalGenerator physicalGenerator)
                              throws org.apache.iotdb.commons.exception.MetadataException
        Group all the subSensors of one vector into one VectorPartialPath save the grouped VectorPartialPath in deduplicatedVectorPaths instead of putting them directly into deduplicatedPaths, because we don't know whether the raw query has value filter here.
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • setDeduplicatedVectorPaths

        public void setDeduplicatedVectorPaths​(java.util.List<org.apache.iotdb.commons.path.PartialPath> deduplicatedVectorPaths)
      • transformToVector

        public void transformToVector()
        RawQueryWithoutValueFilter should call this method to use grouped vector partial path to replace the previous deduplicatedPaths