Interface IMTreeStore

  • All Known Implementing Classes:
    CachedMTreeStore, MemMTreeStore

    public interface IMTreeStore
    This interface defines the basic access methods of an MTreeStore.

    MTreeStore could be implemented as memory-based or disk-based for different scenarios.

    • Method Detail

      • 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
      • addChild

        IMNode addChild​(IMNode parent,
                        java.lang.String childName,
                        IMNode child)
      • 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)