public class BinaryHashBucketArea extends Object
The layout of the buckets inside a memory segment is as follows:
+----------------------------- Bucket x ---------------------------- |element count (2 bytes) | probedFlags (2 bytes) | next-bucket-in-chain-pointer (4 bytes) | | |hashCode 1 (4 bytes) | hashCode 2 (4 bytes) | hashCode 3 (4 bytes) | | ... hashCode n-1 (4 bytes) | hashCode n (4 bytes) | |pointer 1 (4 bytes) | pointer 2 (4 bytes) | pointer 3 (4 bytes) | | ... pointer n-1 (4 bytes) | pointer n (4 bytes) | +---------------------------- Bucket x + 1-------------------------- | ... |
Modifier and Type | Field and Description |
---|---|
static int |
RECORD_BYTES
The number of bytes that the entry in the hash structure occupies, in bytes.
|
Modifier and Type | Method and Description |
---|---|
void |
setPartition(BinaryHashPartition partition) |
public static final int RECORD_BYTES
public void setPartition(BinaryHashPartition partition)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.