Package io.deephaven.chunk.util.pools
Class FloatChunkSoftPool
java.lang.Object
io.deephaven.chunk.util.pools.FloatChunkSoftPool
- All Implemented Interfaces:
FloatChunkPool
FloatChunkPool
implementation that pools chunks of floats in a data structure that only enforces soft
reachability.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableFloatChunk<ATTR>Take aResettableFloatChunk
.<ATTR extends Any>
ResettableWritableFloatChunk<ATTR>Take aResettableWritableFloatChunk
.<ATTR extends Any>
WritableFloatChunk<ATTR>takeWritableFloatChunk
(int capacity) Take aWritableFloatChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPool
in interfaceFloatChunkPool
- Returns:
- This FloatChunkPool as a
ChunkPool
. This is useful for passing this pool to methods that expect aChunkPool
but do not need to know the specific type.
-
takeWritableFloatChunk
Description copied from interface:FloatChunkPool
Take aWritableFloatChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Specified by:
takeWritableFloatChunk
in interfaceFloatChunkPool
- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableFloatChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableFloatChunk
Description copied from interface:FloatChunkPool
Take aResettableFloatChunk
. The result belongs to the caller untilclosed
.- Specified by:
takeResettableFloatChunk
in interfaceFloatChunkPool
- Returns:
- A
ResettableFloatChunk
that belongs to the caller untilclosed
-
takeResettableWritableFloatChunk
Description copied from interface:FloatChunkPool
Take aResettableWritableFloatChunk
. The result belongs to the caller untilclosed
.- Specified by:
takeResettableWritableFloatChunk
in interfaceFloatChunkPool
- Returns:
- A
ResettableWritableFloatChunk
that belongs to the caller untilclosed
-