Class ResettableWritableIntChunk<ATTR_BASE extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.sources.chunk.ChunkBase<ATTR>
com.illumon.iris.db.v2.sources.chunk.IntChunk<ATTR>
com.illumon.iris.db.v2.sources.chunk.WritableIntChunk
com.illumon.iris.db.v2.sources.chunk.ResettableWritableIntChunk<ATTR_BASE>
- All Implemented Interfaces:
Chunk,ResettableChunk<ATTR_BASE>,ResettableWritableChunk<ATTR_BASE>,PoolableChunk,WritableChunk,SafeCloseable,AutoCloseable
public final class ResettableWritableIntChunk<ATTR_BASE extends Attributes.Any>
extends WritableIntChunk
implements ResettableWritableChunk<ATTR_BASE>
ResettableWritableChunk implementation for int data.-
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 TypeMethodDescriptionfinal <ATTR extends ATTR_BASE>
WritableIntChunk<ATTR>clear()Reset this chunk to empty storage.final voidclose()static <ATTR_BASE extends Attributes.Any>
ResettableWritableIntChunk<ATTR_BASE>static <ATTR_BASE extends Attributes.Any>
ResettableWritableIntChunk<ATTR_BASE>final <ATTR extends ATTR_BASE>
WritableIntChunk<ATTR>resetFromArray(Object array) Reset the data and bounds of this chunk to the entire range of the specified array.final <ATTR extends ATTR_BASE>
WritableIntChunk<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.final <ATTR extends ATTR_BASE>
WritableIntChunk<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.final <ATTR extends ATTR_BASE>
WritableIntChunk<ATTR>resetFromTypedArray(int[] data, int offset, int capacity) final <ATTR extends ATTR_BASE>
WritableIntChunk<ATTR>resetFromTypedChunk(WritableIntChunk<ATTR> other, int offset, int capacity) slice(int offset, int capacity) Make a new Chunk that represents either exactly the same view on the underlying data as this Chunk, or a subrange of that view.Methods inherited from class com.illumon.iris.db.v2.sources.chunk.WritableIntChunk
add, appendTypedChunk, copyFromArray, copyFromBuffer, copyFromChunk, copyFromTypedArray, copyFromTypedBuffer, copyFromTypedChunk, downcast, fillWithBoxedValue, fillWithNullValue, fillWithValue, getChunkFiller, makeWritableChunk, makeWritableChunkForPool, set, sort, sort, upcast, writableChunkWrap, writableChunkWrapMethods inherited from class com.illumon.iris.db.v2.sources.chunk.IntChunk
chunkWrap, chunkWrap, copyToArray, copyToBuffer, copyToChunk, copyToTypedArray, copyToTypedBuffer, get, getChunkType, getEmptyChunk, isAlias, isAlias, makeArrayMethods inherited from class com.illumon.iris.db.v2.sources.chunk.ChunkBase
internalCapacity, internalSetSize, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, sizeMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.ResettableWritableChunk
asResettableWritableBooleanChunk, asResettableWritableByteChunk, asResettableWritableCharChunk, asResettableWritableDoubleChunk, asResettableWritableFloatChunk, asResettableWritableIntChunk, asResettableWritableLongChunk, asResettableWritableObjectChunk, asResettableWritableShortChunkMethods 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, sort, sort
-
Method Details
-
makeResettableChunk
public static <ATTR_BASE extends Attributes.Any> ResettableWritableIntChunk<ATTR_BASE> makeResettableChunk() -
makeResettableChunkForPool
public static <ATTR_BASE extends Attributes.Any> ResettableWritableIntChunk<ATTR_BASE> makeResettableChunkForPool() -
slice
Description copied from interface:ChunkMake a new Chunk that represents either exactly the same view on the underlying data as this Chunk, or a subrange of that view. The view is defined as [0..size) (in the coordinate space of this Chunk).- Specified by:
slicein interfaceChunk<ATTR_BASE extends Attributes.Any>- Specified by:
slicein interfaceWritableChunk<ATTR_BASE extends Attributes.Any>- Overrides:
slicein classWritableIntChunk- Parameters:
offset- Offset of the new Chunk, relative to this Chunk. 0 ≤ offset ≤ this.sizecapacity- Capacity and initial size of the new Chunk. 0 ≤ capacity ≤ this.size -offset.- Returns:
- The new Chunk. A new Chunk will always be returned, even if the Chunks represent the same view.
-
resetFromChunk
public final <ATTR extends ATTR_BASE> WritableIntChunk<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>- Specified by:
resetFromChunkin interfaceResettableWritableChunk<ATTR_BASE extends Attributes.Any>- Parameters:
other- The otherWritableChunkoffset- The offset into othercapacity- The capacity this should have after reset- Returns:
- this
-
resetFromArray
public final <ATTR extends ATTR_BASE> WritableIntChunk<ATTR> resetFromArray(Object array, int offset, int capacity) 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>- Specified by:
resetFromArrayin interfaceResettableWritableChunk<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>- Specified by:
resetFromArrayin interfaceResettableWritableChunk<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>- Specified by:
clearin interfaceResettableWritableChunk<ATTR_BASE extends Attributes.Any>
-
resetFromTypedChunk
public final <ATTR extends ATTR_BASE> WritableIntChunk<ATTR> resetFromTypedChunk(WritableIntChunk<ATTR> other, int offset, int capacity) -
resetFromTypedArray
public final <ATTR extends ATTR_BASE> WritableIntChunk<ATTR> resetFromTypedArray(int[] data, int offset, int capacity) -
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable- Overrides:
closein classWritableIntChunk
-