Class ChunkGroupHeader


  • public class ChunkGroupHeader
    extends java.lang.Object
    • Constructor Detail

      • ChunkGroupHeader

        public ChunkGroupHeader​(java.lang.String deviceID)
        constructor of CHUNK_GROUP_HEADER.
        Parameters:
        deviceID - device ID
    • Method Detail

      • getSerializedSize

        public int getSerializedSize()
      • deserializeFrom

        public static ChunkGroupHeader deserializeFrom​(java.io.InputStream inputStream,
                                                       boolean markerRead)
                                                throws java.io.IOException
        deserialize from inputStream.
        Parameters:
        markerRead - - Whether the marker of the CHUNK_GROUP_HEADER is read ahead.
        Throws:
        java.io.IOException - – If an I/O error occurs.
      • deserializeFrom

        public static ChunkGroupHeader deserializeFrom​(TsFileInput input,
                                                       long offset,
                                                       boolean markerRead)
                                                throws java.io.IOException
        deserialize from TsFileInput.
        Parameters:
        markerRead - - Whether the marker of the CHUNK_GROUP_HEADER is read ahead.
        Throws:
        java.io.IOException - - If an I/O error occurs.
      • getDeviceID

        public java.lang.String getDeviceID()
      • serializeTo

        public int serializeTo​(java.io.OutputStream outputStream)
                        throws java.io.IOException
        serialize to outputStream.
        Parameters:
        outputStream - - output stream
        Returns:
        - length
        Throws:
        java.io.IOException - – If an I/O error occurs
      • toString

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