Class MeasurementCollector<T>

    • Constructor Detail

      • MeasurementCollector

        public MeasurementCollector​(IMNode startNode,
                                    org.apache.iotdb.commons.path.PartialPath path,
                                    IMTreeStore store)
                             throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • MeasurementCollector

        public MeasurementCollector​(IMNode startNode,
                                    org.apache.iotdb.commons.path.PartialPath path,
                                    IMTreeStore store,
                                    int limit,
                                    int offset)
                             throws org.apache.iotdb.commons.exception.MetadataException
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
    • Method Detail

      • processInternalMatchedMNode

        protected boolean processInternalMatchedMNode​(IMNode node,
                                                      int idx,
                                                      int level)
                                               throws org.apache.iotdb.commons.exception.MetadataException
        Description copied from class: Traverser
        internal match: root.sg internal match root.sg.**(pattern)
        Specified by:
        processInternalMatchedMNode in class Traverser
        Returns:
        whether this branch of recursive traversal should stop; if true, stop
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • processFullMatchedMNode

        protected boolean processFullMatchedMNode​(IMNode node,
                                                  int idx,
                                                  int level)
                                           throws org.apache.iotdb.commons.exception.MetadataException
        Description copied from class: Traverser
        full match: root.sg.d full match root.sg.**(pattern)
        Specified by:
        processFullMatchedMNode in class Traverser
        Returns:
        whether this branch of recursive traversal should stop; if true, stop
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • collectMeasurement

        protected abstract void collectMeasurement​(IMeasurementMNode node)
                                            throws org.apache.iotdb.commons.exception.MetadataException
        collect the information of one measurement
        Parameters:
        node - MeasurementMNode holding the measurement schema
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • getCurrentMeasurementPathInTraverse

        protected MeasurementPath getCurrentMeasurementPathInTraverse​(IMeasurementMNode currentNode)
        When traverse goes into a template, IMNode.getPartialPath may not work as nodes in template has no parent on MTree. So this methods will construct a path from root to node in template using a stack traverseContext.
      • isUnderAlignedEntity

        protected boolean isUnderAlignedEntity()