Class DeleteDataNode
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.WritePlanNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.write.DeleteDataNode
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest,IPartitionRelatedNode,SerializedSize,WALEntryValue
public class DeleteDataNode extends WritePlanNode implements WALEntryValue
-
-
Field Summary
Fields Modifier and Type Field Description protected longsearchIndexthis index is used by wal search, its order should be protected by the upper layer, and the value should start from 1-
Fields inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
CHILD_COUNT_NO_LIMIT, NO_CHILD_ALLOWED, ONE_CHILD
-
-
Constructor Summary
Constructors Constructor Description DeleteDataNode(PlanNodeId id, java.util.List<org.apache.iotdb.commons.path.PartialPath> pathList, long deleteStartTime, long deleteEndTime)DeleteDataNode(PlanNodeId id, java.util.List<org.apache.iotdb.commons.path.PartialPath> pathList, long deleteStartTime, long deleteEndTime, org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet regionReplicaSet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(PlanVisitor<R,C> visitor, C context)voidaddChild(PlanNode child)intallowedChildCount()PlanNodeclone()static DeleteDataNodedeserialize(java.nio.ByteBuffer byteBuffer)static DeleteDataNodedeserializeFromWAL(java.io.DataInputStream stream)static DeleteDataNodedeserializeFromWAL(java.nio.ByteBuffer buffer)java.util.List<PlanNode>getChildren()longgetDeleteEndTime()longgetDeleteStartTime()java.util.List<java.lang.String>getOutputColumnNames()java.util.List<org.apache.iotdb.commons.path.PartialPath>getPathList()org.apache.iotdb.common.rpc.thrift.TRegionReplicaSetgetRegionReplicaSet()longgetSearchIndex()protected voidserializeAttributes(java.io.DataOutputStream stream)protected voidserializeAttributes(java.nio.ByteBuffer byteBuffer)intserializedSize()Calculate size after serialization.voidserializeToWAL(IWALByteBufferView buffer)Serialize usingIWALByteBufferView, which encapsulates some actions to deal withBufferOverflowExceptionoccurs inByteBuffer.voidsetRegionReplicaSet(org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet regionReplicaSet)voidsetSearchIndex(long searchIndex)Search index should start from 1java.util.List<WritePlanNode>splitByPartition(Analysis analysis)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
cloneWithChildren, equals, getPlanNodeId, hashCode, serialize, serialize, serializeToByteBuffer, setPlanNodeId
-
-
-
-
Constructor Detail
-
DeleteDataNode
public DeleteDataNode(PlanNodeId id, java.util.List<org.apache.iotdb.commons.path.PartialPath> pathList, long deleteStartTime, long deleteEndTime)
-
DeleteDataNode
public DeleteDataNode(PlanNodeId id, java.util.List<org.apache.iotdb.commons.path.PartialPath> pathList, long deleteStartTime, long deleteEndTime, org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet regionReplicaSet)
-
-
Method Detail
-
getPathList
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPathList()
-
getDeleteStartTime
public long getDeleteStartTime()
-
getDeleteEndTime
public long getDeleteEndTime()
-
getSearchIndex
public long getSearchIndex()
-
setSearchIndex
public void setSearchIndex(long searchIndex)
Search index should start from 1
-
getChildren
public java.util.List<PlanNode> getChildren()
- Specified by:
getChildrenin classPlanNode
-
allowedChildCount
public int allowedChildCount()
- Specified by:
allowedChildCountin classPlanNode
-
getOutputColumnNames
public java.util.List<java.lang.String> getOutputColumnNames()
- Specified by:
getOutputColumnNamesin classPlanNode
-
serializedSize
public int serializedSize()
Description copied from interface:SerializedSizeCalculate size after serialization.- Specified by:
serializedSizein interfaceSerializedSize- Returns:
- bytes number
-
serializeToWAL
public void serializeToWAL(IWALByteBufferView buffer)
Description copied from interface:WALEntryValueSerialize usingIWALByteBufferView, which encapsulates some actions to deal withBufferOverflowExceptionoccurs inByteBuffer.- Specified by:
serializeToWALin interfaceWALEntryValue
-
deserializeFromWAL
public static DeleteDataNode deserializeFromWAL(java.io.DataInputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeFromWAL
public static DeleteDataNode deserializeFromWAL(java.nio.ByteBuffer buffer)
-
serializeAttributes
protected void serializeAttributes(java.nio.ByteBuffer byteBuffer)
- Specified by:
serializeAttributesin classPlanNode
-
serializeAttributes
protected void serializeAttributes(java.io.DataOutputStream stream) throws java.io.IOException- Specified by:
serializeAttributesin classPlanNode- Throws:
java.io.IOException
-
deserialize
public static DeleteDataNode deserialize(java.nio.ByteBuffer byteBuffer)
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
getRegionReplicaSet
public org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet getRegionReplicaSet()
- Specified by:
getRegionReplicaSetin interfaceIPartitionRelatedNode
-
setRegionReplicaSet
public void setRegionReplicaSet(org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet regionReplicaSet)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
splitByPartition
public java.util.List<WritePlanNode> splitByPartition(Analysis analysis)
- Specified by:
splitByPartitionin classWritePlanNode
-
-