Class DeletionOpBlock

  • All Implemented Interfaces:
    java.lang.Comparable<AbstractOpBlock>

    public class DeletionOpBlock
    extends AbstractOpBlock
    This class covert 1 deletion action to 1 operation block.
    • Constructor Detail

      • DeletionOpBlock

        public DeletionOpBlock​(java.lang.String sg,
                               org.apache.iotdb.commons.path.PartialPath deletePath,
                               long startTime,
                               long endTime,
                               long pipeDataSerialNumber)
      • DeletionOpBlock

        public DeletionOpBlock​(java.lang.String sg,
                               org.apache.iotdb.commons.path.PartialPath deletePath,
                               long startTime,
                               long endTime,
                               long pipeDataSerialNumber,
                               long beginIndex)
    • Method Detail

      • getOperation

        public Operation getOperation​(long index,
                                      long length)
                               throws java.io.IOException
        Get 1 Operation that contain needed data.

        Note:

        1) Expected data range is [index, index+length)

        2) Real returned data length can less than input parameter length. In fact, returned data's range should always be [index, index+1)

        Specified by:
        getOperation in class AbstractOpBlock
        Parameters:
        index -
        length -
        Returns:
        Throws:
        java.io.IOException
      • close

        public void close()
        release the current class object's resource
        Overrides:
        close in class AbstractOpBlock