Class MeasurementCollector<T>
- java.lang.Object
-
- org.apache.iotdb.db.metadata.mtree.traverser.Traverser
-
- org.apache.iotdb.db.metadata.mtree.traverser.collector.CollectorTraverser<T>
-
- org.apache.iotdb.db.metadata.mtree.traverser.collector.MeasurementCollector<T>
-
public abstract class MeasurementCollector<T> extends CollectorTraverser<T>
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.metadata.mtree.traverser.collector.CollectorTraverser
count, curOffset, hasLimit, limit, offset, resultSet
-
Fields inherited from class org.apache.iotdb.db.metadata.mtree.traverser.Traverser
isInTemplate, isPrefixMatch, isPrefixStart, nodes, shouldTraverseTemplate, startIndex, startLevel, startNode, store, templateMap, traverseContext
-
-
Constructor Summary
Constructors Constructor Description MeasurementCollector(IMNode startNode, org.apache.iotdb.commons.path.PartialPath path, IMTreeStore store)MeasurementCollector(IMNode startNode, org.apache.iotdb.commons.path.PartialPath path, IMTreeStore store, int limit, int offset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcollectMeasurement(IMeasurementMNode node)collect the information of one measurementprotected MeasurementPathgetCurrentMeasurementPathInTraverse(IMeasurementMNode currentNode)When traverse goes into a template, IMNode.getPartialPath may not work as nodes in template has no parent on MTree.protected booleanisUnderAlignedEntity()protected booleanprocessFullMatchedMNode(IMNode node, int idx, int level)full match: root.sg.d full match root.sg.**(pattern)protected booleanprocessInternalMatchedMNode(IMNode node, int idx, int level)internal match: root.sg internal match root.sg.**(pattern)-
Methods inherited from class org.apache.iotdb.db.metadata.mtree.traverser.collector.CollectorTraverser
getCurOffset, getResult, setLimit, setOffset, setResultSet, traverse
-
Methods inherited from class org.apache.iotdb.db.metadata.mtree.traverser.Traverser
getCurrentPartialPath, getCurrentPathNodes, getStorageGroupNodeInTraversePath, getUpperTemplate, processMultiLevelWildcard, processNameMatch, processOneLevelWildcard, setPrefixMatch, setTemplateMap, traverse
-
-
-
-
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:Traverserinternal match: root.sg internal match root.sg.**(pattern)- Specified by:
processInternalMatchedMNodein classTraverser- 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:Traverserfull match: root.sg.d full match root.sg.**(pattern)- Specified by:
processFullMatchedMNodein classTraverser- 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()
-
-