Class InsertRowsNode
- 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.InsertNode
-
- org.apache.iotdb.db.mpp.plan.planner.plan.node.write.InsertRowsNode
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest,IPartitionRelatedNode,BatchInsertNode
public class InsertRowsNode extends InsertNode implements BatchInsertNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.write.InsertNode
InsertNode.FailedMeasurementInfo
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.write.InsertNode
dataRegionReplicaSet, dataTypes, deviceID, devicePath, failedMeasurementIndex2Info, isAligned, measurements, measurementSchemas, NO_CONSENSUS_INDEX, searchIndex
-
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 InsertRowsNode(PlanNodeId id)InsertRowsNode(PlanNodeId id, java.util.List<java.lang.Integer> insertRowNodeIndexList, java.util.List<InsertRowNode> insertRowNodeList)
-
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)voidaddOneInsertRowNode(InsertRowNode node, int index)intallowedChildCount()PlanNodeclone()static InsertRowsNodedeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)java.util.List<java.lang.Boolean>getAlignedList()java.util.List<PlanNode>getChildren()java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[]>getDataTypesList()java.util.List<org.apache.iotdb.commons.path.PartialPath>getDevicePaths()org.apache.iotdb.common.rpc.thrift.TSStatus[]getFailingStatus()java.lang.ObjectgetFirstValueOfIndex(int index)java.util.List<java.lang.Integer>getInsertRowNodeIndexList()java.util.List<InsertRowNode>getInsertRowNodeList()java.util.List<java.lang.String[]>getMeasurementsList()longgetMinTime()java.util.List<java.lang.String>getOutputColumnNames()java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus>getResults()inthashCode()protected voidserializeAttributes(java.io.DataOutputStream stream)protected voidserializeAttributes(java.nio.ByteBuffer byteBuffer)voidsetInsertRowNodeIndexList(java.util.List<java.lang.Integer> insertRowNodeIndexList)voidsetInsertRowNodeList(java.util.List<InsertRowNode> insertRowNodeList)voidsetSearchIndex(long index)Search index should start from 1java.util.List<WritePlanNode>splitByPartition(Analysis analysis)booleanvalidateAndSetSchema(ISchemaTree schemaTree)-
Methods inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.write.InsertNode
deserializeMeasurementSchemas, deserializeMeasurementSchemas, getDataRegionReplicaSet, getDataType, getDataTypes, getDeviceID, getDevicePath, getFailedExceptions, getFailedMeasurementNumber, getFailedMeasurements, getFailedMessages, getMeasurements, getMeasurementSchemas, getRegionReplicaSet, getSearchIndex, hasFailedMeasurements, hasValidMeasurements, isAligned, markFailedMeasurement, selfCheckDataTypes, serializeMeasurementSchemasSize, serializeMeasurementSchemasToWAL, setAligned, setDataRegionReplicaSet, setDataTypes, setDeviceID, setDevicePath, setMeasurementSchemas
-
Methods inherited from class org.apache.iotdb.db.mpp.plan.planner.plan.node.PlanNode
cloneWithChildren, getPlanNodeId, serialize, serialize, serializeToByteBuffer, setPlanNodeId
-
-
-
-
Constructor Detail
-
InsertRowsNode
public InsertRowsNode(PlanNodeId id)
-
InsertRowsNode
public InsertRowsNode(PlanNodeId id, java.util.List<java.lang.Integer> insertRowNodeIndexList, java.util.List<InsertRowNode> insertRowNodeList)
-
-
Method Detail
-
getInsertRowNodeIndexList
public java.util.List<java.lang.Integer> getInsertRowNodeIndexList()
-
setInsertRowNodeIndexList
public void setInsertRowNodeIndexList(java.util.List<java.lang.Integer> insertRowNodeIndexList)
-
getInsertRowNodeList
public java.util.List<InsertRowNode> getInsertRowNodeList()
-
setInsertRowNodeList
public void setInsertRowNodeList(java.util.List<InsertRowNode> insertRowNodeList)
-
addOneInsertRowNode
public void addOneInsertRowNode(InsertRowNode node, int index)
-
setSearchIndex
public void setSearchIndex(long index)
Description copied from class:InsertNodeSearch index should start from 1- Overrides:
setSearchIndexin classInsertNode
-
getResults
public java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus> getResults()
-
getFailingStatus
public org.apache.iotdb.common.rpc.thrift.TSStatus[] getFailingStatus()
-
getChildren
public java.util.List<PlanNode> getChildren()
- Specified by:
getChildrenin classPlanNode
-
validateAndSetSchema
public boolean validateAndSetSchema(ISchemaTree schemaTree)
- Specified by:
validateAndSetSchemain classInsertNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classInsertNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classInsertNode
-
allowedChildCount
public int allowedChildCount()
- Specified by:
allowedChildCountin classPlanNode
-
getOutputColumnNames
public java.util.List<java.lang.String> getOutputColumnNames()
- Specified by:
getOutputColumnNamesin classPlanNode
-
getDevicePaths
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getDevicePaths()
- Specified by:
getDevicePathsin interfaceBatchInsertNode
-
getMeasurementsList
public java.util.List<java.lang.String[]> getMeasurementsList()
- Specified by:
getMeasurementsListin interfaceBatchInsertNode
-
getDataTypesList
public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[]> getDataTypesList()
- Specified by:
getDataTypesListin interfaceBatchInsertNode
-
getAlignedList
public java.util.List<java.lang.Boolean> getAlignedList()
- Specified by:
getAlignedListin interfaceBatchInsertNode
-
deserialize
public static InsertRowsNode deserialize(java.nio.ByteBuffer byteBuffer)
-
serializeAttributes
protected void serializeAttributes(java.nio.ByteBuffer byteBuffer)
- Overrides:
serializeAttributesin classInsertNode
-
serializeAttributes
protected void serializeAttributes(java.io.DataOutputStream stream) throws java.io.IOException- Overrides:
serializeAttributesin classInsertNode- Throws:
java.io.IOException
-
splitByPartition
public java.util.List<WritePlanNode> splitByPartition(Analysis analysis)
- Specified by:
splitByPartitionin classWritePlanNode
-
accept
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
-
getMinTime
public long getMinTime()
- Specified by:
getMinTimein classInsertNode
-
getFirstValueOfIndex
public java.lang.Object getFirstValueOfIndex(int index)
- Specified by:
getFirstValueOfIndexin classInsertNode
-
-