Class ChunkGroupHeader


  • public class ChunkGroupHeader
    extends Object
    • Constructor Detail

      • ChunkGroupHeader

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

      • getSerializedSize

        public int getSerializedSize()
      • deserializeFrom

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

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

        public String getDeviceID()
      • serializeTo

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