Package io.deephaven.chunk.util.pools
Class DoubleChunkSoftPool
java.lang.Object
io.deephaven.chunk.util.pools.DoubleChunkSoftPool
- All Implemented Interfaces:
DoubleChunkPool
DoubleChunkPool
implementation that pools chunks of doubles in a data structure that only enforces soft
reachability.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableDoubleChunk<ATTR>Take aResettableDoubleChunk
.<ATTR extends Any>
ResettableWritableDoubleChunk<ATTR>Take aResettableWritableDoubleChunk
.<ATTR extends Any>
WritableDoubleChunk<ATTR>takeWritableDoubleChunk
(int capacity) Take aWritableDoubleChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPool
in interfaceDoubleChunkPool
- Returns:
- This DoubleChunkPool as a
ChunkPool
. This is useful for passing this pool to methods that expect aChunkPool
but do not need to know the specific type.
-
takeWritableDoubleChunk
Description copied from interface:DoubleChunkPool
Take aWritableDoubleChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Specified by:
takeWritableDoubleChunk
in interfaceDoubleChunkPool
- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableDoubleChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableDoubleChunk
Description copied from interface:DoubleChunkPool
Take aResettableDoubleChunk
. The result belongs to the caller untilclosed
.- Specified by:
takeResettableDoubleChunk
in interfaceDoubleChunkPool
- Returns:
- A
ResettableDoubleChunk
that belongs to the caller untilclosed
-
takeResettableWritableDoubleChunk
Description copied from interface:DoubleChunkPool
Take aResettableWritableDoubleChunk
. The result belongs to the caller untilclosed
.- Specified by:
takeResettableWritableDoubleChunk
in interfaceDoubleChunkPool
- Returns:
- A
ResettableWritableDoubleChunk
that belongs to the caller untilclosed
-