Class ChunkBase<ATTR extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.sources.chunk.ChunkBase<ATTR>
- All Implemented Interfaces:
Chunk<ATTR>
- Direct Known Subclasses:
BooleanChunk,ByteChunk,CharChunk,DoubleChunk,FloatChunk,IntChunk,LongChunk,ObjectChunk,ShortChunk
A generic object intended to serve as a thin wrapper around an array region.
-
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 intinternalCapacity(long password) DO NOT CALL THIS INTERNAL METHOD.final voidinternalSetSize(int newSize, long password) DO NOT CALL THIS INTERNAL METHOD.final intsize()Methods 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, slice
-
Method Details
-
size
public final int size()- Specified by:
sizein interfaceChunk<ATTR extends Attributes.Any>- Returns:
- The length of the data in the chunk
-
internalSetSize
public final void internalSetSize(int newSize, long password) DO NOT CALL THIS INTERNAL METHOD. If you want to set a size, callWritableChunk.setSize(int). That method is the only legal caller of this method in the entire system. -
internalCapacity
public final int internalCapacity(long password) DO NOT CALL THIS INTERNAL METHOD. CallWritableChunk.capacity()That method is the only legal caller of this method in the entire system.
-