Interface IMTreeStore
-
- All Known Implementing Classes:
CachedMTreeStore,MemMTreeStore
public interface IMTreeStoreThis interface defines the basic access methods of an MTreeStore.MTreeStore could be implemented as memory-based or disk-based for different scenarios.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMNodeaddChild(IMNode parent, java.lang.String childName, IMNode child)voidclear()booleancreateSnapshot(java.io.File snapshotDir)voiddeleteChild(IMNode parent, java.lang.String childName)IMNodegetChild(IMNode parent, java.lang.String name)IMNodeIteratorgetChildrenIterator(IMNode parent)IMNodegetRoot()booleanhasChild(IMNode parent, java.lang.String name)voidpin(IMNode node)voidsetAlias(IMeasurementMNode measurementMNode, java.lang.String alias)IEntityMNodesetToEntity(IMNode node)IMNodesetToInternal(IEntityMNode entityMNode)voidunPin(IMNode node)voidunPinPath(IMNode node)voidupdateMNode(IMNode node)
-
-
-
Method Detail
-
getRoot
IMNode getRoot()
-
hasChild
boolean hasChild(IMNode parent, java.lang.String name) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
getChild
IMNode getChild(IMNode parent, java.lang.String name) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
getChildrenIterator
IMNodeIterator getChildrenIterator(IMNode parent) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
deleteChild
void deleteChild(IMNode parent, java.lang.String childName) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
updateMNode
void updateMNode(IMNode node) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
setToEntity
IEntityMNode setToEntity(IMNode node) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
setToInternal
IMNode setToInternal(IEntityMNode entityMNode) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
setAlias
void setAlias(IMeasurementMNode measurementMNode, java.lang.String alias) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
pin
void pin(IMNode node) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
unPin
void unPin(IMNode node)
-
unPinPath
void unPinPath(IMNode node)
-
clear
void clear()
-
createSnapshot
boolean createSnapshot(java.io.File snapshotDir)
-
-