Package io.deephaven.chunk
Interface ResettableReadOnlyChunk<ATTR_BASE extends Any>
- All Superinterfaces:
AutoCloseable
,Chunk<ATTR_BASE>
,PoolableChunk
,ResettableChunk<ATTR_BASE>
,SafeCloseable
- All Known Implementing Classes:
ResettableBooleanChunk
,ResettableByteChunk
,ResettableCharChunk
,ResettableDoubleChunk
,ResettableFloatChunk
,ResettableIntChunk
,ResettableLongChunk
,ResettableObjectChunk
,ResettableShortChunk
public interface ResettableReadOnlyChunk<ATTR_BASE extends Any>
extends ResettableChunk<ATTR_BASE>, PoolableChunk
-
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 TypeMethodDescriptiondefault ResettableBooleanChunk<ATTR_BASE>
default ResettableByteChunk<ATTR_BASE>
default ResettableCharChunk<ATTR_BASE>
default ResettableDoubleChunk<ATTR_BASE>
default ResettableFloatChunk<ATTR_BASE>
default ResettableIntChunk<ATTR_BASE>
default ResettableLongChunk<ATTR_BASE>
default <T> ResettableObjectChunk<T,
ATTR_BASE> default ResettableShortChunk<ATTR_BASE>
clear()
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
(Chunk<? extends ATTR> other, int offset, int capacity) Reset the data and bounds of this chunk to a range or sub-range of the specifiedChunk
.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
Methods inherited from interface io.deephaven.util.SafeCloseable
close
-
Method Details
-
resetFromChunk
<ATTR extends ATTR_BASE> Chunk<ATTR> resetFromChunk(Chunk<? extends ATTR> other, int offset, int capacity) Reset the data and bounds of this chunk to a range or sub-range of the specifiedChunk
.- Parameters:
other
- The otherChunk
offset
- The offset into othercapacity
- The capacity this should have after reset
-
resetFromChunk
default <ATTR extends ATTR_BASE> Chunk<ATTR> resetFromChunk(WritableChunk<ATTR> other, int offset, int capacity) Description copied from interface:ResettableChunk
Reset the data and bounds of this chunk to a range or sub-range of the specifiedWritableChunk
.- Specified by:
resetFromChunk
in interfaceResettableChunk<ATTR_BASE extends Any>
- Parameters:
other
- The otherWritableChunk
offset
- The offset into othercapacity
- The capacity this should have after reset- Returns:
- this
-
resetFromArray
Description copied from interface:ResettableChunk
Reset the data and bounds of this chunk to a range or sub-range of the specified array.- Specified by:
resetFromArray
in interfaceResettableChunk<ATTR_BASE extends Any>
- Parameters:
array
- The arrayoffset
- The offset into arraycapacity
- The capacity this should have after reset- Returns:
- this
-
resetFromArray
Description copied from interface:ResettableChunk
Reset the data and bounds of this chunk to the entire range of the specified array.- Specified by:
resetFromArray
in interfaceResettableChunk<ATTR_BASE extends Any>
- Parameters:
array
- The array- Returns:
- this
-
clear
Description copied from interface:ResettableChunk
Reset this chunk to empty storage.- Specified by:
clear
in interfaceResettableChunk<ATTR_BASE extends Any>
-
asResettableByteChunk
-
asResettableBooleanChunk
-
asResettableCharChunk
-
asResettableShortChunk
-
asResettableIntChunk
-
asResettableLongChunk
-
asResettableFloatChunk
-
asResettableDoubleChunk
-
asResettableObjectChunk
-