Class DbIntArraySlice
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbIntArray.Indirect
com.illumon.iris.db.tables.dbarrays.DbIntArraySlice
- All Implemented Interfaces:
DbArrayBase
,DbIntArray
,LongSizedDataStructure
,ToStringWithElements
,Serializable
public class DbIntArraySlice extends DbIntArray.Indirect
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbIntArray
DbIntArray.Indirect
-
Field Summary
Fields inherited from interface com.illumon.iris.gui.table.format.ToStringWithElements
ARRAY_SIZE_WARNING, DEFAULT_ARRAY_SIZE_COPY, MAX_ARRAY_SIZE_COPY
-
Constructor Summary
Constructors Constructor Description DbIntArraySlice(DbIntArray innerArray, long offsetIndex, long length)
DbIntArraySlice(DbIntArray innerArray, long offsetIndex, long length, long innerArrayValidFromInclusive, long innerArrayValidToExclusive)
-
Method Summary
Modifier and Type Method Description int
get(long index)
int
getPrev(long index)
boolean
isEmpty()
long
size()
The size of this data structure.DbIntArray
subArray(long fromIndexInclusive, long toIndexExclusive)
DbIntArray
subArrayByPositions(long[] positions)
int[]
toArray()
DbArray<Integer>
toDbArray()
Methods inherited from class com.illumon.iris.db.tables.dbarrays.DbIntArray.Indirect
equals, getDirect, hashCode, toString, toString, writeReplace
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.tables.dbarrays.DbIntArray
fillChunk, getComponentType, toChunk
-
Constructor Details
-
DbIntArraySlice
public DbIntArraySlice(@NotNull DbIntArray innerArray, long offsetIndex, long length, long innerArrayValidFromInclusive, long innerArrayValidToExclusive) -
DbIntArraySlice
-
-
Method Details
-
get
public int get(long index) -
subArray
-
subArrayByPositions
-
toArray
public int[] toArray() -
size
public long size()Description copied from interface:LongSizedDataStructure
The size of this data structure.- Returns:
- The size
-
toDbArray
-
getPrev
public int getPrev(long index) -
isEmpty
public boolean isEmpty()
-