Class MeasurementGroupByLevelCounter


  • public class MeasurementGroupByLevelCounter
    extends Traverser
    • Constructor Detail

      • MeasurementGroupByLevelCounter

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

        public MeasurementGroupByLevelCounter​(IMNode startNode,
                                              org.apache.iotdb.commons.path.PartialPath path,
                                              IMTreeStore store,
                                              int groupByLevel,
                                              java.util.List<java.lang.String> timeseries,
                                              boolean hasTag)
                                       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
      • getResult

        public java.util.Map<org.apache.iotdb.commons.path.PartialPath,​java.lang.Integer> getResult()
      • setResult

        public void setResult​(java.util.Map<org.apache.iotdb.commons.path.PartialPath,​java.lang.Integer> result)