Class Deletion
- java.lang.Object
-
- org.apache.iotdb.db.engine.modification.Modification
-
- org.apache.iotdb.db.engine.modification.Deletion
-
public class Deletion extends Modification
Deletion is a delete operation on a timeseries.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.engine.modification.Modification
Modification.Type
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.engine.modification.Modification
fileOffset, path, type
-
-
Constructor Summary
Constructors Constructor Description Deletion(org.apache.iotdb.commons.path.PartialPath path, long fileOffset, long endTime)constructor of Deletion, the start time is set to Long.MIN_VALUEDeletion(org.apache.iotdb.commons.path.PartialPath path, long fileOffset, long startTime, long endTime)constructor of Deletion
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeletiondeserializeWithoutFileOffset(java.io.DataInputStream stream)booleanequals(java.lang.Object obj)longgetEndTime()longgetStartTime()inthashCode()longserializeWithoutFileOffset(java.io.DataOutputStream stream)voidsetEndTime(long timestamp)voidsetStartTime(long timestamp)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.db.engine.modification.Modification
getDevice, getFileOffset, getMeasurement, getPath, getPathString, getType, setFileOffset, setPath, setType
-
-
-
-
Constructor Detail
-
Deletion
public Deletion(org.apache.iotdb.commons.path.PartialPath path, long fileOffset, long endTime)constructor of Deletion, the start time is set to Long.MIN_VALUE- Parameters:
endTime- end time of delete intervalpath- time series path
-
Deletion
public Deletion(org.apache.iotdb.commons.path.PartialPath path, long fileOffset, long startTime, long endTime)constructor of Deletion- Parameters:
startTime- start time of delete intervalendTime- end time of delete intervalpath- time series path
-
-
Method Detail
-
getStartTime
public long getStartTime()
-
setStartTime
public void setStartTime(long timestamp)
-
getEndTime
public long getEndTime()
-
setEndTime
public void setEndTime(long timestamp)
-
serializeWithoutFileOffset
public long serializeWithoutFileOffset(java.io.DataOutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
deserializeWithoutFileOffset
public static Deletion deserializeWithoutFileOffset(java.io.DataInputStream stream) throws java.io.IOException, org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
java.io.IOExceptionorg.apache.iotdb.commons.exception.IllegalPathException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classModification
-
hashCode
public int hashCode()
- Overrides:
hashCodein classModification
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-