Class FileBlockBase

  • Direct Known Subclasses:
    FileBlock, FileBlockPosition

    public class FileBlockBase
    extends Object
    Base class that contains the metadata about a fileblock. Subclasses of this include additional fields, such as byte offsets that let a fileblock be read in a random-access fashion, or the data itself.
    Author:
    crosby
    • Field Detail

      • type

        protected final String type
        Identifies the type of the data within a block
      • indexdata

        protected final com.google.protobuf.ByteString indexdata
        Block metadata, stored in the index block and as a prefix for every block.
    • Constructor Detail

      • FileBlockBase

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

      • getType

        public String getType()
      • getIndexData

        public com.google.protobuf.ByteString getIndexData()