java.lang.Object
org.aksw.commons.io.hadoop.binseach.v2.Block

public class Block extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected BlockSource
     
    protected org.aksw.commons.io.buffer.plain.Buffer<byte[]>
     
    protected long
    A physical offset in the block source - position in the encoded/compressed data.
    protected long
    A physical offset in the block source - position in the encoded/compressed data.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Block(org.aksw.commons.io.buffer.plain.Buffer<byte[]> buffer, long thisBlockId, long nextBlockId)
     
    Block(BlockSource blockSource, org.aksw.commons.io.buffer.plain.Buffer<byte[]> buffer, long thisBlockId, long nextBlockId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.aksw.commons.io.buffer.plain.Buffer<byte[]>
     
    long
     
    long
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • thisBlockId

      protected long thisBlockId
      A physical offset in the block source - position in the encoded/compressed data.
    • nextBlockId

      protected long nextBlockId
      A physical offset in the block source - position in the encoded/compressed data.
    • buffer

      protected org.aksw.commons.io.buffer.plain.Buffer<byte[]> buffer
    • blockSource

      protected BlockSource blockSource
  • Constructor Details

    • Block

      public Block(BlockSource blockSource, org.aksw.commons.io.buffer.plain.Buffer<byte[]> buffer, long thisBlockId, long nextBlockId)
    • Block

      public Block(org.aksw.commons.io.buffer.plain.Buffer<byte[]> buffer, long thisBlockId, long nextBlockId)
  • Method Details

    • getBuffer

      public org.aksw.commons.io.buffer.plain.Buffer<byte[]> getBuffer()
    • getNextBlockId

      public long getNextBlockId()
    • getThisBlockId

      public long getThisBlockId()
    • size

      public int size()