Class HashBucket

All Implemented Interfaces:
org.apache.jena.atlas.io.Printable, Page

public final class HashBucket extends RecordBufferPageBase
A HashBucket is a record buffer, with space store it's hash value and the bit length
  • Field Details

  • Constructor Details

    • HashBucket

      public HashBucket(int id, int hashValue, int bucketBitLen, Block block, RecordFactory factory, int count)
      Create a bucket
  • Method Details

    • format

      public static HashBucket format(Block block, RecordFactory factory)
    • createBlank

      public static HashBucket createBlank(Block block, RecordFactory factory)
    • findIndex

      public final int findIndex(Record key)
    • find

      public final Record find(Record key)
    • put

      public final boolean put(Record record)
    • set

      public void set(int x, Record record)
    • removeByKey

      public final boolean removeByKey(Record key)
    • _reset

      public void _reset(Block block)
    • isFull

      public final boolean isFull()
    • isEmpty

      public final boolean isEmpty()
    • get

      public final Record get(int idx)
    • getTrieValue

      public final int getTrieValue()
    • getTrieBitLen

      public final int getTrieBitLen()
    • setTrieLength

      public void setTrieLength(int trieBitLen)
    • toString

      public String toString()
      Overrides:
      toString in class RecordBufferPageBase