Class DeletePlan
- java.lang.Object
-
- org.apache.iotdb.db.qp.physical.PhysicalPlan
-
- org.apache.iotdb.db.qp.physical.crud.DeletePlan
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest,SerializedSize,WALEntryValue
public class DeletePlan extends PhysicalPlan implements WALEntryValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
PhysicalPlan.Factory, PhysicalPlan.PhysicalPlanType
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, index
-
-
Constructor Summary
Constructors Constructor Description DeletePlan()DeletePlan(long startTime, long endTime, java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)constructor of DeletePlan with multiple paths.DeletePlan(long startTime, long endTime, org.apache.iotdb.commons.path.PartialPath path)constructor of DeletePlan with single path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPath(org.apache.iotdb.commons.path.PartialPath path)voidaddPaths(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)voiddeserialize(java.io.DataInputStream stream)voiddeserialize(java.nio.ByteBuffer buffer)Deserialize the plan from the given buffer.booleanequals(java.lang.Object o)longgetDeleteEndTime()longgetDeleteStartTime()DataRegion.TimePartitionFiltergetPartitionFilter()java.util.List<org.apache.iotdb.commons.path.PartialPath>getPaths()inthashCode()voidserialize(java.io.DataOutputStream stream)Serialize the plan into the given buffer.intserializedSize()Calculate size after serialization.voidserializeImpl(java.nio.ByteBuffer buffer)voidserializeToWAL(IWALByteBufferView buffer)Serialize usingIWALByteBufferView, which encapsulates some actions to deal withBufferOverflowExceptionoccurs inByteBuffer.voidsetDeleteEndTime(long delTime)voidsetDeleteStartTime(long delTime)voidsetPartitionFilter(DataRegion.TimePartitionFilter partitionFilter)voidsetPaths(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)-
Methods inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, checkIntegrity, getAggregations, getAuthPaths, getIndex, getLoginUserName, getOperatorName, getOperatorType, isAuthenticationRequired, isDebug, isPrefixMatch, isQuery, isSelectInto, putString, putString, putStrings, putStrings, readString, readStrings, serialize, serializeToByteBuffer, setDebug, setIndex, setLoginUserName, setOperatorType, setPrefixMatch, setQuery
-
-
-
-
Constructor Detail
-
DeletePlan
public DeletePlan()
-
DeletePlan
public DeletePlan(long startTime, long endTime, org.apache.iotdb.commons.path.PartialPath path)constructor of DeletePlan with single path.- Parameters:
startTime- delete time range startendTime- delete time range endpath- time series path
-
DeletePlan
public DeletePlan(long startTime, long endTime, java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)constructor of DeletePlan with multiple paths.- Parameters:
startTime- delete time range startendTime- delete time range endpaths- time series paths in List structure
-
-
Method Detail
-
getDeleteStartTime
public long getDeleteStartTime()
-
setDeleteStartTime
public void setDeleteStartTime(long delTime)
-
getDeleteEndTime
public long getDeleteEndTime()
-
setDeleteEndTime
public void setDeleteEndTime(long delTime)
-
addPath
public void addPath(org.apache.iotdb.commons.path.PartialPath path)
-
addPaths
public void addPaths(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)
-
getPaths
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
- Specified by:
getPathsin classPhysicalPlan
-
setPaths
public void setPaths(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)
- Overrides:
setPathsin classPhysicalPlan
-
getPartitionFilter
public DataRegion.TimePartitionFilter getPartitionFilter()
-
setPartitionFilter
public void setPartitionFilter(DataRegion.TimePartitionFilter partitionFilter)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
serializedSize
public int serializedSize()
Description copied from interface:SerializedSizeCalculate size after serialization.- Specified by:
serializedSizein interfaceSerializedSize- Returns:
- bytes number
-
serialize
public void serialize(java.io.DataOutputStream stream) throws java.io.IOExceptionDescription copied from class:PhysicalPlanSerialize the plan into the given buffer. All necessary fields will be serialized.- Overrides:
serializein classPhysicalPlan- Throws:
java.io.IOException
-
serializeImpl
public void serializeImpl(java.nio.ByteBuffer buffer)
- Overrides:
serializeImplin classPhysicalPlan
-
serializeToWAL
public void serializeToWAL(IWALByteBufferView buffer)
Description copied from interface:WALEntryValueSerialize usingIWALByteBufferView, which encapsulates some actions to deal withBufferOverflowExceptionoccurs inByteBuffer.- Specified by:
serializeToWALin interfaceWALEntryValue
-
deserialize
public void deserialize(java.io.DataInputStream stream) throws java.io.IOException, org.apache.iotdb.commons.exception.IllegalPathException- Overrides:
deserializein classPhysicalPlan- Throws:
java.io.IOExceptionorg.apache.iotdb.commons.exception.IllegalPathException
-
deserialize
public void deserialize(java.nio.ByteBuffer buffer) throws org.apache.iotdb.commons.exception.IllegalPathExceptionDescription copied from class:PhysicalPlanDeserialize the plan from the given buffer.- Overrides:
deserializein classPhysicalPlan- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
-