Class LocalDataPartitionTable


  • public class LocalDataPartitionTable
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      java.util.List<org.apache.iotdb.commons.consensus.DataRegionId> deleteStorageGroup​(org.apache.iotdb.commons.path.PartialPath storageGroup)  
      org.apache.iotdb.commons.consensus.DataRegionId getDataRegionId​(org.apache.iotdb.commons.path.PartialPath storageGroup, org.apache.iotdb.commons.path.PartialPath path)  
      java.util.List<org.apache.iotdb.commons.consensus.DataRegionId> getDataRegionIdsByStorageGroup​(org.apache.iotdb.commons.path.PartialPath storageGroup)  
      static LocalDataPartitionTable getInstance()  
      java.util.List<org.apache.iotdb.commons.consensus.DataRegionId> getInvolvedDataRegionIds​(org.apache.iotdb.commons.path.PartialPath storageGroup, org.apache.iotdb.commons.path.PartialPath pathPattern, boolean isPrefixMatch)  
      void init​(java.util.Map<java.lang.String,​java.util.List<org.apache.iotdb.commons.consensus.DataRegionId>> recoveredLocalDataRegionInfo)  
      void putDataRegionId​(org.apache.iotdb.commons.path.PartialPath storageGroup, org.apache.iotdb.commons.consensus.DataRegionId dataRegionId)  
      void removeDataRegionId​(org.apache.iotdb.commons.path.PartialPath storageGroup, org.apache.iotdb.commons.consensus.DataRegionId dataRegionId)  
      void setDataPartitionInfo​(org.apache.iotdb.commons.path.PartialPath storageGroup)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • init

        public void init​(java.util.Map<java.lang.String,​java.util.List<org.apache.iotdb.commons.consensus.DataRegionId>> recoveredLocalDataRegionInfo)
                  throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • clear

        public void clear()
      • putDataRegionId

        public void putDataRegionId​(org.apache.iotdb.commons.path.PartialPath storageGroup,
                                    org.apache.iotdb.commons.consensus.DataRegionId dataRegionId)
      • removeDataRegionId

        public void removeDataRegionId​(org.apache.iotdb.commons.path.PartialPath storageGroup,
                                       org.apache.iotdb.commons.consensus.DataRegionId dataRegionId)
      • getDataRegionId

        public org.apache.iotdb.commons.consensus.DataRegionId getDataRegionId​(org.apache.iotdb.commons.path.PartialPath storageGroup,
                                                                               org.apache.iotdb.commons.path.PartialPath path)
      • getInvolvedDataRegionIds

        public java.util.List<org.apache.iotdb.commons.consensus.DataRegionId> getInvolvedDataRegionIds​(org.apache.iotdb.commons.path.PartialPath storageGroup,
                                                                                                        org.apache.iotdb.commons.path.PartialPath pathPattern,
                                                                                                        boolean isPrefixMatch)
      • getDataRegionIdsByStorageGroup

        public java.util.List<org.apache.iotdb.commons.consensus.DataRegionId> getDataRegionIdsByStorageGroup​(org.apache.iotdb.commons.path.PartialPath storageGroup)
      • setDataPartitionInfo

        public void setDataPartitionInfo​(org.apache.iotdb.commons.path.PartialPath storageGroup)
      • deleteStorageGroup

        public java.util.List<org.apache.iotdb.commons.consensus.DataRegionId> deleteStorageGroup​(org.apache.iotdb.commons.path.PartialPath storageGroup)