Interface ResettableWritableChunk<ATTR_BASE extends Attributes.Any>
- All Superinterfaces:
AutoCloseable
,Chunk
,PoolableChunk
,ResettableChunk<ATTR_BASE>
,SafeCloseable
,WritableChunk
- All Known Implementing Classes:
ResettableWritableBooleanChunk
,ResettableWritableByteChunk
,ResettableWritableCharChunk
,ResettableWritableDoubleChunk
,ResettableWritableFloatChunk
,ResettableWritableIntChunk
,ResettableWritableLongChunk
,ResettableWritableObjectChunk
,ResettableWritableShortChunk
public interface ResettableWritableChunk<ATTR_BASE extends Attributes.Any>
extends ResettableChunk<ATTR_BASE>, WritableChunk, PoolableChunk
WritableChunk
that may have its backing storage reset to a slice of that belonging to another
WritableChunk
or a native array.-
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 TypeMethodDescriptiondefault ResettableWritableBooleanChunk<ATTR_BASE>
default ResettableWritableByteChunk<ATTR_BASE>
default ResettableWritableCharChunk<ATTR_BASE>
default ResettableWritableDoubleChunk<ATTR_BASE>
default ResettableWritableFloatChunk<ATTR_BASE>
default ResettableWritableIntChunk<ATTR_BASE>
default ResettableWritableLongChunk<ATTR_BASE>
default <T> ResettableWritableObjectChunk<T,
ATTR_BASE> default ResettableWritableShortChunk<ATTR_BASE>
<ATTR extends ATTR_BASE>
WritableChunk<ATTR>clear()
Reset this chunk to empty storage.<ATTR extends ATTR_BASE>
WritableChunk<ATTR>resetFromArray
(Object array) Reset the data and bounds of this chunk to the entire range of the specified array.<ATTR extends ATTR_BASE>
WritableChunk<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>
WritableChunk<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
Methods inherited from interface com.illumon.util.SafeCloseable
close
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.WritableChunk
asWritableBooleanChunk, asWritableByteChunk, asWritableCharChunk, asWritableDoubleChunk, asWritableFloatChunk, asWritableIntChunk, asWritableLongChunk, asWritableObjectChunk, asWritableShortChunk, capacity, copyFromArray, copyFromBuffer, copyFromChunk, fillWithBoxedValue, fillWithNullValue, getChunkFiller, internalCapacity, internalSetSize, setSize, slice, sort, sort
-
Method Details
-
resetFromChunk
<ATTR extends ATTR_BASE> WritableChunk<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 Attributes.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 Attributes.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 Attributes.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 Attributes.Any>
-
asResettableWritableByteChunk
-
asResettableWritableBooleanChunk
-
asResettableWritableCharChunk
-
asResettableWritableShortChunk
-
asResettableWritableIntChunk
-
asResettableWritableLongChunk
-
asResettableWritableFloatChunk
-
asResettableWritableDoubleChunk
-
asResettableWritableObjectChunk
-