Class InsertTabletPlan

    • Constructor Detail

      • InsertTabletPlan

        public InsertTabletPlan()
      • InsertTabletPlan

        public InsertTabletPlan​(org.apache.iotdb.commons.path.PartialPath prefixPath,
                                java.util.List<java.lang.String> measurements)
      • InsertTabletPlan

        public InsertTabletPlan​(org.apache.iotdb.commons.path.PartialPath prefixPath,
                                java.lang.String[] measurements)
      • InsertTabletPlan

        public InsertTabletPlan​(org.apache.iotdb.commons.path.PartialPath prefixPath,
                                java.lang.String[] measurements,
                                java.util.List<java.lang.Integer> dataTypes)
      • InsertTabletPlan

        public InsertTabletPlan​(org.apache.iotdb.commons.path.PartialPath prefixPath,
                                java.lang.String[] measurements,
                                java.util.List<java.lang.Integer> dataTypes,
                                boolean isAligned)
    • Method Detail

      • getRange

        public java.util.List<java.lang.Integer> getRange()
      • setRange

        public void setRange​(java.util.List<java.lang.Integer> range)
      • getPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
        Specified by:
        getPaths in class PhysicalPlan
      • serializedSize

        public int serializedSize()
        Description copied from interface: SerializedSize
        Calculate size after serialization.
        Specified by:
        serializedSize in interface SerializedSize
        Returns:
        bytes number
      • serializedSize

        public int serializedSize​(int start,
                                  int end)
      • serialize

        public void serialize​(java.io.DataOutputStream stream)
                       throws java.io.IOException
        Description copied from class: PhysicalPlan
        Serialize the plan into the given buffer. All necessary fields will be serialized.
        Overrides:
        serialize in class PhysicalPlan
        Throws:
        java.io.IOException
      • serializeToWAL

        public void serializeToWAL​(IWALByteBufferView buffer,
                                   int start,
                                   int end)
      • deserialize

        public void deserialize​(java.io.DataInputStream stream)
                         throws java.io.IOException,
                                org.apache.iotdb.commons.exception.IllegalPathException
        Overrides:
        deserialize in class PhysicalPlan
        Throws:
        java.io.IOException
        org.apache.iotdb.commons.exception.IllegalPathException
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
                         throws org.apache.iotdb.commons.exception.IllegalPathException
        Description copied from class: PhysicalPlan
        Deserialize the plan from the given buffer.
        Overrides:
        deserialize in class PhysicalPlan
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • setDataTypes

        public void setDataTypes​(java.util.List<java.lang.Integer> dataTypes)
      • getColumns

        public java.lang.Object[] getColumns()
      • setColumns

        public void setColumns​(java.lang.Object[] columns)
      • setColumn

        public void setColumn​(int index,
                              java.lang.Object column)
      • getBitMaps

        public org.apache.iotdb.tsfile.utils.BitMap[] getBitMaps()
      • setBitMaps

        public void setBitMaps​(org.apache.iotdb.tsfile.utils.BitMap[] bitMaps)
      • getMaxTime

        public long getMaxTime()
      • composeLastTimeValuePair

        public org.apache.iotdb.tsfile.read.TimeValuePair composeLastTimeValuePair​(int measurementIndex)
      • getTimes

        public long[] getTimes()
      • setTimes

        public void setTimes​(long[] times)
      • getRowCount

        public int getRowCount()
      • setRowCount

        public void setRowCount​(int size)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • markFailedMeasurementInsertion

        public void markFailedMeasurementInsertion​(int index,
                                                   java.lang.Exception e)
        Description copied from class: InsertPlan
        This method is overrided in InsertRowPlan and InsertTabletPlan. After marking failed measurements, the failed values or columns would be null as well. We'd better use "measurements[index] == null" to determine if the measurement failed.
        Overrides:
        markFailedMeasurementInsertion in class InsertPlan
        Parameters:
        index - failed measurement index
      • getPlanFromFailed

        public InsertPlan getPlanFromFailed()
        Description copied from class: InsertPlan
        Reconstruct this plan with the failed measurements.
        Overrides:
        getPlanFromFailed in class InsertPlan
        Returns:
        the plan itself, with measurements replaced with the previously failed ones.
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • recoverFromFailure

        public void recoverFromFailure()
        Description copied from class: InsertPlan
        Reset measurements from failed measurements (if any), as if no failure had ever happened.
        Overrides:
        recoverFromFailure in class InsertPlan