| Modifier and Type | Field and Description |
|---|---|
| protected int | elementIndex
Index of the *next* element to write; may point into, or just outside of, the current chunk. |
| protected final int | initialChunkPower
log2 of the size of the first chunk. |
| public static final int | MAX_CHUNK_POWER
Max power-of-two for chunks. |
| public static final int | MIN_CHUNK_POWER
Minimum power-of-two for the first chunk. |
| public static final int | MIN_CHUNK_SIZE
Minimum size for the first chunk. |
| public static final int | MIN_SPINE_SIZE
Minimum array size for array-of-chunks. |
| protected long[] | priorElementCount
Count of elements in all prior chunks. |
| protected int | spineIndex
Index of the *current* chunk in the spine array, if the spine array is non-null. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractSpinedBuffer(int
The minimum expected number of elements initialCapacity)Construct with a specified initial capacity. |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| public abstract void | |
| public long | |
| public boolean |
| elementIndex | back to summary |
|---|---|
| protected int elementIndex Index of the *next* element to write; may point into, or just outside of, the current chunk. | |
| initialChunkPower | back to summary |
|---|---|
| protected final int initialChunkPower log2 of the size of the first chunk. | |
| MAX_CHUNK_POWER | back to summary |
|---|---|
| public static final int MAX_CHUNK_POWER Max power-of-two for chunks. | |
| MIN_CHUNK_POWER | back to summary |
|---|---|
| public static final int MIN_CHUNK_POWER Minimum power-of-two for the first chunk. | |
| MIN_CHUNK_SIZE | back to summary |
|---|---|
| public static final int MIN_CHUNK_SIZE Minimum size for the first chunk. | |
| MIN_SPINE_SIZE | back to summary |
|---|---|
| public static final int MIN_SPINE_SIZE Minimum array size for array-of-chunks. | |
| priorElementCount | back to summary |
|---|---|
| protected long[] priorElementCount Count of elements in all prior chunks. | |
| spineIndex | back to summary |
|---|---|
| protected int spineIndex Index of the *current* chunk in the spine array, if the spine array is non-null. | |
| AbstractSpinedBuffer | back to summary |
|---|---|
| protected AbstractSpinedBuffer() Construct with an initial capacity of 16. | |
| AbstractSpinedBuffer | back to summary |
|---|---|
| protected AbstractSpinedBuffer(int initialCapacity) Construct with a specified initial capacity.
| |
| chunkSize | back to summary |
|---|---|
| protected int chunkSize(int n) How big should the nth chunk be? | |
| clear | back to summary |
|---|---|
| public abstract void clear() Remove all data from the buffer | |
| count | back to summary |
|---|---|
| public long count() How many elements are currently in the buffer? | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Is the buffer currently empty? | |