Package io.deephaven.chunk.util.pools
Class BooleanChunkSoftPool
java.lang.Object
io.deephaven.chunk.util.pools.BooleanChunkSoftPool
- All Implemented Interfaces:
BooleanChunkPool
BooleanChunkPool implementation that pools chunks of booleans in a data structure that only enforces soft
reachability.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableBooleanChunk<ATTR>Take aResettableBooleanChunk.<ATTR extends Any>
ResettableWritableBooleanChunk<ATTR>Take aResettableWritableBooleanChunk.<ATTR extends Any>
WritableBooleanChunk<ATTR>takeWritableBooleanChunk(int capacity) Take aWritableBooleanChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPoolin interfaceBooleanChunkPool- Returns:
- This BooleanChunkPool as a
ChunkPool. This is useful for passing this pool to methods that expect aChunkPoolbut do not need to know the specific type.
-
takeWritableBooleanChunk
Description copied from interface:BooleanChunkPoolTake aWritableBooleanChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Specified by:
takeWritableBooleanChunkin interfaceBooleanChunkPool- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableBooleanChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableBooleanChunk
Description copied from interface:BooleanChunkPoolTake aResettableBooleanChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableBooleanChunkin interfaceBooleanChunkPool- Returns:
- A
ResettableBooleanChunkthat belongs to the caller untilclosed
-
takeResettableWritableBooleanChunk
Description copied from interface:BooleanChunkPoolTake aResettableWritableBooleanChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableWritableBooleanChunkin interfaceBooleanChunkPool- Returns:
- A
ResettableWritableBooleanChunkthat belongs to the caller untilclosed
-