Class InsertRowNode

    • Constructor Detail

      • InsertRowNode

        public InsertRowNode​(PlanNodeId id)
      • InsertRowNode

        public InsertRowNode​(PlanNodeId id,
                             org.apache.iotdb.commons.path.PartialPath devicePath,
                             boolean isAligned,
                             java.lang.String[] measurements,
                             org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] dataTypes,
                             long time,
                             java.lang.Object[] values,
                             boolean isNeedInferType)
    • Method Detail

      • getOutputColumnNames

        public java.util.List<java.lang.String> getOutputColumnNames()
        Specified by:
        getOutputColumnNames in class PlanNode
      • getDataTypes

        public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] getDataTypes()
        Overrides:
        getDataTypes in class InsertNode
      • getDataType

        public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getDataType​(int index)
        Overrides:
        getDataType in class InsertNode
      • getValues

        public java.lang.Object[] getValues()
      • setValues

        public void setValues​(java.lang.Object[] values)
      • getTime

        public long getTime()
      • setTime

        public void setTime​(long time)
      • isNeedInferType

        public boolean isNeedInferType()
      • setNeedInferType

        public void setNeedInferType​(boolean needInferType)
      • getTimePartitionSlots

        public java.util.List<org.apache.iotdb.common.rpc.thrift.TTimePartitionSlot> getTimePartitionSlots()
      • markFailedMeasurement

        public void markFailedMeasurement​(int index,
                                          java.lang.Exception cause)
        Description copied from class: InsertNode
        Mark failed measurement, measurements[index], dataTypes[index] and values/columns[index] would be null. We'd better use "measurements[index] == null" to determine if the measurement failed.
        This method is not concurrency-safe.
        Overrides:
        markFailedMeasurement in class InsertNode
        Parameters:
        index - failed measurement index
        cause - cause Exception of failure
      • serializeAttributes

        protected void serializeAttributes​(java.nio.ByteBuffer byteBuffer)
        Overrides:
        serializeAttributes in class InsertNode
      • serializeAttributes

        protected void serializeAttributes​(java.io.DataOutputStream stream)
                                    throws java.io.IOException
        Overrides:
        serializeAttributes in class InsertNode
        Throws:
        java.io.IOException
      • deserialize

        public static InsertRowNode deserialize​(java.nio.ByteBuffer byteBuffer)
      • serializedSize

        public int serializedSize()
        Serialized size for wal
        Specified by:
        serializedSize in interface SerializedSize
        Returns:
        bytes number
      • serializeToWAL

        public void serializeToWAL​(IWALByteBufferView buffer)
        Compared with {@link this#serialize(ByteBuffer)}, more info: search index, less info: isNeedInferType
        Specified by:
        serializeToWAL in interface WALEntryValue
      • deserializeFromWAL

        public static InsertRowNode deserializeFromWAL​(java.io.DataInputStream stream)
                                                throws java.io.IOException
        Deserialize from wal
        Throws:
        java.io.IOException
      • fillDataTypesAndValuesFromWAL

        public void fillDataTypesAndValuesFromWAL​(java.io.DataInputStream stream)
                                           throws java.io.IOException
        Make sure the dataTypes and values have been created before calling this
        Throws:
        java.io.IOException
      • deserializeFromWAL

        public static InsertRowNode deserializeFromWAL​(java.nio.ByteBuffer buffer)
        Deserialize from wal
      • fillDataTypesAndValuesFromWAL

        public void fillDataTypesAndValuesFromWAL​(java.nio.ByteBuffer buffer)
        Make sure the dataTypes and values have been created before calling this
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class InsertNode
      • composeTimeValuePair

        public org.apache.iotdb.tsfile.read.TimeValuePair composeTimeValuePair​(int columnIndex)