Class TTLInfo
java.lang.Object
org.apache.iotdb.confignode.persistence.TTLInfo
- All Implemented Interfaces:
SnapshotProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanlonggetDatabaseMaxTTL(String database) Get the maximum ttl of the subtree of the corresponding database.intinthashCode()voidprocessLoadSnapshot(File snapshotDir) booleanprocessTakeSnapshot(File snapshotDir) voidOnly used for upgrading from database level ttl to device level ttl.setTTL(SetTTLPlan plan) showTTL(ShowTTLPlan plan) unsetTTL(SetTTLPlan plan)
-
Field Details
-
SNAPSHOT_FILENAME
- See Also:
-
-
Constructor Details
-
TTLInfo
public TTLInfo()
-
-
Method Details
-
setTTL
-
setTTL
Only used for upgrading from database level ttl to device level ttl.- Throws:
IllegalPathException
-
unsetTTL
-
showTTL
-
getTTLCount
public int getTTLCount() -
getDatabaseMaxTTL
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:
processTakeSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-
processLoadSnapshot
- Specified by:
processLoadSnapshotin interfaceSnapshotProcessor- Throws:
org.apache.thrift.TExceptionIOException
-
equals
-
hashCode
public int hashCode() -
clear
public void clear()
-