Package io.deephaven.chunk.util.pools
Interface DoubleChunkPool
- All Known Implementing Classes:
DoubleChunkSoftPool
,MultiChunkPool
public interface DoubleChunkPool
Interface for pools of
WritableDoubleChunk
, ResettableDoubleChunk
, and
ResettableWritableDoubleChunk
.-
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
ChunkPool asChunkPool() -
takeWritableDoubleChunk
Take aWritableDoubleChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableDoubleChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableDoubleChunk
Take aResettableDoubleChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableDoubleChunk
that belongs to the caller untilclosed
-
takeResettableWritableDoubleChunk
Take aResettableWritableDoubleChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableWritableDoubleChunk
that belongs to the caller untilclosed
-