Package io.deephaven.chunk
Interface ResettableChunk<ATTR_BASE extends Any>
- All Superinterfaces:
Chunk<ATTR_BASE>
- All Known Subinterfaces:
ResettableReadOnlyChunk<ATTR_BASE>
,ResettableWritableChunk<ATTR_BASE>
- All Known Implementing Classes:
ResettableBooleanChunk
,ResettableByteChunk
,ResettableCharChunk
,ResettableDoubleChunk
,ResettableFloatChunk
,ResettableIntChunk
,ResettableLongChunk
,ResettableObjectChunk
,ResettableShortChunk
,ResettableWritableBooleanChunk
,ResettableWritableByteChunk
,ResettableWritableCharChunk
,ResettableWritableDoubleChunk
,ResettableWritableFloatChunk
,ResettableWritableIntChunk
,ResettableWritableLongChunk
,ResettableWritableObjectChunk
,ResettableWritableShortChunk
WritableChunk
that may have its backing storage reset to a slice of that belonging to another
WritableChunk
or a native array.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.chunk.Chunk
Chunk.Visitor<ATTR extends Any>
-
Field Summary
Fields inherited from interface io.deephaven.chunk.Chunk
MAXIMUM_SIZE, SYSTEM_ARRAYCOPY_THRESHOLD, SYSTEM_ARRAYFILL_THRESHOLD
-
Method Summary
Modifier and TypeMethodDescriptionclear()
Reset this chunk to empty storage.resetFromArray
(Object array) Reset the data and bounds of this chunk to the entire range of the specified array.resetFromArray
(Object array, int offset, int capacity) Reset the data and bounds of this chunk to a range or sub-range of the specified array.resetFromChunk
(WritableChunk<ATTR> other, int offset, int capacity) Reset the data and bounds of this chunk to a range or sub-range of the specifiedWritableChunk
.Methods inherited from interface io.deephaven.chunk.Chunk
asBooleanChunk, asByteChunk, asCharChunk, asDoubleChunk, asFloatChunk, asIntChunk, asLongChunk, asObjectChunk, asShortChunk, checkChunkType, copyToArray, copyToBuffer, copyToChunk, getChunkType, isAlias, isAlias, size, slice, walk
-
Method Details
-
resetFromChunk
<ATTR extends ATTR_BASE> Chunk<ATTR> resetFromChunk(WritableChunk<ATTR> other, int offset, int capacity) Reset the data and bounds of this chunk to a range or sub-range of the specifiedWritableChunk
.- Parameters:
other
- The otherWritableChunk
offset
- The offset into othercapacity
- The capacity this should have after reset- Returns:
- this
-
resetFromArray
Reset the data and bounds of this chunk to a range or sub-range of the specified array.- Parameters:
array
- The arrayoffset
- The offset into arraycapacity
- The capacity this should have after reset- Returns:
- this
-
resetFromArray
Reset the data and bounds of this chunk to the entire range of the specified array.- Parameters:
array
- The array- Returns:
- this
-
clear
Reset this chunk to empty storage.
-