Interface DbArray<T>
- All Superinterfaces:
DbArrayBase
,LongSizedDataStructure
,Serializable
,ToStringWithElements
- All Known Implementing Classes:
DbArray.Indirect
,DbArrayBooleanWrapper
,DbArrayByteWrapper
,DbArrayCharWrapper
,DbArrayColumnWrapper
,DbArrayDirect
,DbArrayDoubleWrapper
,DbArrayFloatWrapper
,DbArrayImmutableColumnWrapper
,DbArrayIntWrapper
,DbArrayLongWrapper
,DbArrayShortWrapper
,DbArraySlice
,DbDateTimeSsmSourceWrapper.ValueWrapper
,DbPrevArrayColumnWrapper
,DbSubArray
,ObjectSegmentedSortedMultiset
public interface DbArray<T> extends DbArrayBase
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DbArray.Indirect<T>
Base class for all "indirect" DbArray implementations. -
Field Summary
Fields Modifier and Type Field Description static int
CHUNK_SIZE
static long
serialVersionUID
Fields inherited from interface com.illumon.iris.gui.table.format.ToStringWithElements
ARRAY_SIZE_WARNING, DEFAULT_ARRAY_SIZE_COPY, MAX_ARRAY_SIZE_COPY
-
Method Summary
Modifier and Type Method Description static String
defaultValToString(Object val)
static boolean
equals(DbArray<?> aArray, Object b)
Helper method for implementingObject.equals(Object)
.default void
fillChunk(WritableChunk<?> destChunk)
T
get(long i)
Class<T>
getComponentType()
T
getPrev(long offset)
static int
hashCode(DbArray<?> array)
Helper method for implementingObject.hashCode()
.DbArray<T>
subArray(long fromIndexInclusive, long toIndexExclusive)
DbArray<T>
subArrayByPositions(long[] positions)
T[]
toArray()
default Chunk<Attributes.Values>
toChunk()
static String
toString(DbArray<?> array)
static String
toString(DbArray<?> array, long maxElements)
Helper method for implementingObject.toString()
.Methods inherited from interface com.illumon.iris.db.tables.dbarrays.DbArrayBase
getDirect, isEmpty, toDbArray
Methods inherited from interface com.illumon.iris.db.util.LongSizedDataStructure
intSize, intSize, size
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
- Constant Field Values
-
CHUNK_SIZE
static final int CHUNK_SIZE
-
-
Method Details
-
get
-
subArray
- Specified by:
subArray
in interfaceDbArrayBase
-
subArrayByPositions
- Specified by:
subArrayByPositions
in interfaceDbArrayBase
-
toArray
T[] toArray()- Specified by:
toArray
in interfaceDbArrayBase
-
getComponentType
- Specified by:
getComponentType
in interfaceDbArrayBase
-
getPrev
-
toChunk
- Specified by:
toChunk
in interfaceDbArrayBase
-
fillChunk
- Specified by:
fillChunk
in interfaceDbArrayBase
-
defaultValToString
-
toString
Helper method for implementingObject.toString()
.- Parameters:
array
- The DbArray to convert to a String- Returns:
- The String representation of array
-
toString
-
equals
Helper method for implementingObject.equals(Object)
.- Parameters:
aArray
- The LHS of the equality test (always a DbArray)b
- The RHS of the equality test- Returns:
- Whether the two inputs are equal
-
hashCode
Helper method for implementingObject.hashCode()
. Follows the pattern inArrays.hashCode(Object[])
.- Parameters:
array
- The DbArray to hash- Returns:
- The hash code
-