Class TsFileOpBlock

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

    public class TsFileOpBlock
    extends AbstractOpBlock
    This class will parse 1 TsFile's content to 1 operation block.
    • Constructor Detail

      • TsFileOpBlock

        public TsFileOpBlock​(java.lang.String sg,
                             java.lang.String tsFileName,
                             long pipeDataSerialNumber)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • TsFileOpBlock

        public TsFileOpBlock​(java.lang.String sg,
                             java.lang.String tsFileName,
                             long pipeDataSerialNumber,
                             long beginIndex)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • TsFileOpBlock

        public TsFileOpBlock​(java.lang.String sg,
                             java.lang.String tsFileName,
                             java.lang.String modsFileName,
                             long pipeDataSerialNumber)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • TsFileOpBlock

        public TsFileOpBlock​(java.lang.String sg,
                             java.lang.String tsFileName,
                             java.lang.String modsFileName,
                             long pipeDataSerialNumber,
                             long beginIndex)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getDataCount

        public long getDataCount()
        return the Count of data points in this TsFile
        Overrides:
        getDataCount in class AbstractOpBlock
        Returns:
      • 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
        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
      • getModificationList

        public java.util.Collection<Modification> getModificationList()
      • getFullPathToDeletionMap

        public java.util.Map<java.lang.String,​DeletionGroup> getFullPathToDeletionMap()