Class FileBlockPosition

  • Direct Known Subclasses:
    FileBlockReference

    public class FileBlockPosition
    extends FileBlockBase
    Stores the position in the stream of a fileblock so that it can be easily read in a random-access fashion. We can turn this into a 'real' block by appropriately seeking into the file and doing a 'read'.
    • Field Detail

      • datasize

        protected int datasize
    • Constructor Detail

      • FileBlockPosition

        protected FileBlockPosition​(String type,
                                    com.google.protobuf.ByteString indexdata)
    • Method Detail

      • getDatasize

        public int getDatasize()
      • serialize

        public com.google.protobuf.ByteString serialize()
        TODO: Convert this reference into a serialized representation that can be stored.