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 aWritableDoubleChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableDoubleChunk
Take aWritableDoubleChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableDoubleChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableDoubleChunk
Take aResettableDoubleChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableDoubleChunkthat belongs to the caller untilclosed
-
takeResettableWritableDoubleChunk
Take aResettableWritableDoubleChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableWritableDoubleChunkthat belongs to the caller untilclosed
-