java.lang.Object
org.apache.iotdb.confignode.persistence.TTLInfo
All Implemented Interfaces:
SnapshotProcessor

public class TTLInfo extends Object implements SnapshotProcessor
  • Field Details

  • Constructor Details

    • TTLInfo

      public TTLInfo()
  • Method Details

    • setTTL

      public TSStatus setTTL(SetTTLPlan plan)
    • setTTL

      public void setTTL(Map<String,Long> databaseTTLMap) throws IllegalPathException
      Only used for upgrading from database level ttl to device level ttl.
      Throws:
      IllegalPathException
    • unsetTTL

      public TSStatus unsetTTL(SetTTLPlan plan)
    • showTTL

      public ShowTTLResp showTTL(ShowTTLPlan plan)
    • getTTLCount

      public int getTTLCount()
    • getDatabaseMaxTTL

      public long getDatabaseMaxTTL(String database)
      Get the maximum ttl of the subtree of the corresponding database.
      Parameters:
      database - the path of the database.
      Returns:
      the maximum ttl of the subtree of the corresponding database. return NULL_TTL if the TTL is not set or the database does not exist.
    • processTakeSnapshot

      public boolean processTakeSnapshot(File snapshotDir) throws org.apache.thrift.TException, IOException
      Specified by:
      processTakeSnapshot in interface SnapshotProcessor
      Throws:
      org.apache.thrift.TException
      IOException
    • processLoadSnapshot

      public void processLoadSnapshot(File snapshotDir) throws org.apache.thrift.TException, IOException
      Specified by:
      processLoadSnapshot in interface SnapshotProcessor
      Throws:
      org.apache.thrift.TException
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clear

      public void clear()