Interface ResettableReadOnlyChunk<ATTR_BASE extends Attributes.Any>
- All Superinterfaces:
AutoCloseable,Chunk,PoolableChunk,ResettableChunk<ATTR_BASE>,SafeCloseable
- All Known Implementing Classes:
ResettableBooleanChunk,ResettableByteChunk,ResettableCharChunk,ResettableDoubleChunk,ResettableFloatChunk,ResettableIntChunk,ResettableLongChunk,ResettableObjectChunk,ResettableShortChunk
public interface ResettableReadOnlyChunk<ATTR_BASE extends Attributes.Any> extends ResettableChunk<ATTR_BASE>, PoolableChunk
-
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.Chunk
MAXIMUM_SIZE, SYSTEM_ARRAYCOPY_THRESHOLD, SYSTEM_ARRAYFILL_THRESHOLD -
Method Summary
Modifier and Type Method Description default ResettableBooleanChunk<ATTR_BASE>asResettableBooleanChunk()default ResettableByteChunk<ATTR_BASE>asResettableByteChunk()default ResettableCharChunk<ATTR_BASE>asResettableCharChunk()default ResettableDoubleChunk<ATTR_BASE>asResettableDoubleChunk()default ResettableFloatChunk<ATTR_BASE>asResettableFloatChunk()default ResettableIntChunk<ATTR_BASE>asResettableIntChunk()default ResettableLongChunk<ATTR_BASE>asResettableLongChunk()default <T> ResettableObjectChunk<T,ATTR_BASE>asResettableObjectChunk()default ResettableShortChunk<ATTR_BASE>asResettableShortChunk()<ATTR extends ATTR_BASE>
Chunk<ATTR>clear()Reset this chunk to empty storage.<ATTR extends ATTR_BASE>
Chunk<ATTR>resetFromArray(Object array)Reset the data and bounds of this chunk to the entire range of the specified array.<ATTR extends ATTR_BASE>
Chunk<ATTR>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.<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.default <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.Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.Chunk
asBooleanChunk, asByteChunk, asCharChunk, asDoubleChunk, asFloatChunk, asIntChunk, asLongChunk, asObjectChunk, asShortChunk, copyToArray, copyToBuffer, copyToChunk, getChunkType, isAlias, isAlias, size, slice
-
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 otherChunkoffset- 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:ResettableChunkReset the data and bounds of this chunk to a range or sub-range of the specifiedWritableChunk.- Specified by:
resetFromChunkin interfaceResettableChunk<ATTR_BASE extends Attributes.Any>- Parameters:
other- The otherWritableChunkoffset- The offset into othercapacity- The capacity this should have after reset- Returns:
- this
-
resetFromArray
Description copied from interface:ResettableChunkReset the data and bounds of this chunk to a range or sub-range of the specified array.- Specified by:
resetFromArrayin interfaceResettableChunk<ATTR_BASE extends Attributes.Any>- Parameters:
array- The arrayoffset- The offset into arraycapacity- The capacity this should have after reset- Returns:
- this
-
resetFromArray
Description copied from interface:ResettableChunkReset the data and bounds of this chunk to the entire range of the specified array.- Specified by:
resetFromArrayin interfaceResettableChunk<ATTR_BASE extends Attributes.Any>- Parameters:
array- The array- Returns:
- this
-
clear
Description copied from interface:ResettableChunkReset this chunk to empty storage.- Specified by:
clearin interfaceResettableChunk<ATTR_BASE extends Attributes.Any>
-
asResettableByteChunk
-
asResettableBooleanChunk
-
asResettableCharChunk
-
asResettableShortChunk
-
asResettableIntChunk
-
asResettableLongChunk
-
asResettableFloatChunk
-
asResettableDoubleChunk
-
asResettableObjectChunk
-