java.lang.Object
org.apache.jena.tdb1.base.page.PageBase
org.apache.jena.tdb1.base.recordbuffer.RecordBufferPageBase
org.apache.jena.tdb1.index.ext.HashBucket
- All Implemented Interfaces:
org.apache.jena.atlas.io.Printable,Page
A HashBucket is a record buffer, with space store it's hash value and the bit length
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class org.apache.jena.tdb1.base.recordbuffer.RecordBufferPageBase
COUNT -
Constructor Summary
ConstructorsConstructorDescriptionHashBucket(int id, int hashValue, int bucketBitLen, Block block, RecordFactory factory, int count) Create a bucket -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic HashBucketcreateBlank(Block block, RecordFactory factory) final Recordfinal intstatic HashBucketformat(Block block, RecordFactory factory) final Recordget(int idx) final intfinal intfinal booleanisEmpty()final booleanisFull()final booleanfinal booleanremoveByKey(Record key) voidvoidsetTrieLength(int trieBitLen) toString()Methods inherited from class org.apache.jena.tdb1.base.recordbuffer.RecordBufferPageBase
calcBlockSize, calcRecordSize, getCount, getMaxSize, getRecordBuffer, output, setCountMethods inherited from class org.apache.jena.tdb1.base.page.PageBase
getBackingBlock, getId, reset
-
Field Details
-
TRIE
public static final int TRIE- See Also:
-
BITLEN
public static final int BITLEN- See Also:
-
FIELD_LENGTH
public static final int FIELD_LENGTH- See Also:
-
-
Constructor Details
-
HashBucket
public HashBucket(int id, int hashValue, int bucketBitLen, Block block, RecordFactory factory, int count) Create a bucket
-
-
Method Details
-
format
-
createBlank
-
findIndex
-
find
-
put
-
set
-
removeByKey
-
_reset
-
isFull
public final boolean isFull() -
isEmpty
public final boolean isEmpty() -
get
-
getTrieValue
public final int getTrieValue() -
getTrieBitLen
public final int getTrieBitLen() -
setTrieLength
public void setTrieLength(int trieBitLen) -
toString
- Overrides:
toStringin classRecordBufferPageBase
-