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 aWritableDoubleChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPoolin interfaceDoubleChunkPool- Returns:
- This DoubleChunkPool as a
ChunkPool. This is useful for passing this pool to methods that expect aChunkPoolbut do not need to know the specific type.
-
takeWritableDoubleChunk
Description copied from interface:DoubleChunkPoolTake aWritableDoubleChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Specified by:
takeWritableDoubleChunkin interfaceDoubleChunkPool- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableDoubleChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableDoubleChunk
Description copied from interface:DoubleChunkPoolTake aResettableDoubleChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableDoubleChunkin interfaceDoubleChunkPool- Returns:
- A
ResettableDoubleChunkthat belongs to the caller untilclosed
-
takeResettableWritableDoubleChunk
Description copied from interface:DoubleChunkPoolTake aResettableWritableDoubleChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableWritableDoubleChunkin interfaceDoubleChunkPool- Returns:
- A
ResettableWritableDoubleChunkthat belongs to the caller untilclosed
-