Class DbSubArray<T>
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbArray.Indirect<T>
com.illumon.iris.db.tables.dbarrays.DbSubArray<T>
- All Implemented Interfaces:
DbArray<T>
,DbArrayBase
,LongSizedDataStructure
,ToStringWithElements
,Serializable
public class DbSubArray<T> extends DbArray.Indirect<T>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbArray
DbArray.Indirect<T>
-
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 DbSubArray(DbArray<T> innerArray, long[] positions)
-
Method Summary
Modifier and Type Method Description T
get(long index)
Class<T>
getComponentType()
DbArrayBase
getDirect()
Return a version of this DbArrayBase that is flattened out to only reference memory.T
getPrev(long index)
boolean
isEmpty()
long
size()
The size of this data structure.DbArray<T>
subArray(long fromIndexInclusive, long toIndexExclusive)
DbArray<T>
subArrayByPositions(long[] positions)
T[]
toArray()
DbArray
toDbArray()
Methods inherited from class com.illumon.iris.db.tables.dbarrays.DbArray.Indirect
equals, hashCode, toString, toString, writeReplace
-
Constructor Details
-
Method Details
-
get
-
subArray
-
subArrayByPositions
-
toArray
-
size
public long size()Description copied from interface:LongSizedDataStructure
The size of this data structure.- Returns:
- The size
-
getComponentType
-
toDbArray
-
getPrev
-
isEmpty
public boolean isEmpty() -
getDirect
Description copied from interface:DbArrayBase
Return a version of this DbArrayBase that is flattened out to only reference memory.
-