Interface DbShortArray
- All Superinterfaces:
DbArrayBase,LongSizedDataStructure,Serializable,ToStringWithElements
- All Known Implementing Classes:
DbPrevShortArrayColumnWrapper,DbShortArray.Indirect,DbShortArrayColumnWrapper,DbShortArrayDirect,DbShortArrayImmutableColumnWrapper,DbShortArraySlice,DbSubShortArray,ShortSegmentedSortedMultiset
public interface DbShortArray extends DbArrayBase
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDbShortArray.IndirectBase class for all "indirect" DbShortArray implementations. -
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDFields 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 booleanequals(DbShortArray aArray, Object b)Helper method for implementingObject.equals(Object).default voidfillChunk(WritableChunk<?> destChunk)shortget(long i)default Class<?>getComponentType()DbShortArraygetDirect()Return a version of this DbArrayBase that is flattened out to only reference memory.shortgetPrev(long i)static inthashCode(DbShortArray array)Helper method for implementingObject.hashCode().static StringprimitiveShortValToString(short val)static StringshortValToString(Object val)longsize()The size of this data structure.DbShortArraysubArray(long fromIndex, long toIndex)DbShortArraysubArrayByPositions(long[] positions)short[]toArray()default Chunk<Attributes.Values>toChunk()DbArray<Short>toDbArray()static StringtoString(DbShortArray array)static StringtoString(DbShortArray array, long maxElements)Helper method for implementingObject.toString().
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Method Details
-
get
short get(long i) -
subArray
- Specified by:
subArrayin interfaceDbArrayBase
-
subArrayByPositions
- Specified by:
subArrayByPositionsin interfaceDbArrayBase
-
toArray
short[] toArray()- Specified by:
toArrayin interfaceDbArrayBase
-
size
long size()Description copied from interface:LongSizedDataStructureThe size of this data structure.- Specified by:
sizein interfaceLongSizedDataStructure- Returns:
- The size
-
toDbArray
- Specified by:
toDbArrayin interfaceDbArrayBase
-
getPrev
short getPrev(long i) -
getComponentType
- Specified by:
getComponentTypein interfaceDbArrayBase
-
getDirect
DbShortArray getDirect()Return a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirectin interfaceDbArrayBase
-
toChunk
- Specified by:
toChunkin interfaceDbArrayBase
-
fillChunk
- Specified by:
fillChunkin interfaceDbArrayBase
-
shortValToString
-
primitiveShortValToString
-
toString
Helper method for implementingObject.toString().- Parameters:
array- The DbShortArray 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 DbShortArray)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 DbShortArray to hash- Returns:
- The hash code
-