Interface DbCharArray
- All Superinterfaces:
DbArrayBase,LongSizedDataStructure,Serializable,ToStringWithElements
- All Known Implementing Classes:
CharSegmentedSortedMultiset,DbCharArray.Indirect,DbCharArrayColumnWrapper,DbCharArrayDirect,DbCharArrayImmutableColumnWrapper,DbCharArraySlice,DbPrevCharArrayColumnWrapper,DbSubCharArray
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBase class for all "indirect" DbCharArray implementations. -
Field Summary
FieldsFields inherited from interface com.illumon.iris.db.tables.dbarrays.DbArrayBase
NULL_ELEMENT_STRINGFields inherited from interface com.illumon.util.format.ToStringWithElements
ARRAY_SIZE_WARNING, DEFAULT_ARRAY_SIZE_COPY, MAX_ARRAY_SIZE_COPY -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcharValToString(Object val) static booleanequals(DbCharArray aArray, Object b) Helper method for implementingObject.equals(Object).default voidfillChunk(WritableChunk<?> destChunk) charget(long i) default Class<?>Return a version of this DbArrayBase that is flattened out to only reference memory.chargetPrev(long i) static inthashCode(DbCharArray array) Helper method for implementingObject.hashCode().static StringprimitiveCharValToString(char val) longsize()The size of this data structure.subArray(long fromIndex, long toIndex) subArrayByPositions(long[] positions) char[]toArray()default Chunk<Attributes.Values>toChunk()static StringtoString(DbCharArray array) static StringtoString(DbCharArray array, long maxElements) Helper method for implementingObject.toString().Methods inherited from interface com.illumon.iris.db.tables.dbarrays.DbArrayBase
isEmptyMethods inherited from interface com.illumon.iris.db.util.LongSizedDataStructure
intSize, intSizeMethods inherited from interface com.illumon.util.format.ToStringWithElements
toString
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Method Details
-
get
char get(long i) -
subArray
- Specified by:
subArrayin interfaceDbArrayBase
-
subArrayByPositions
- Specified by:
subArrayByPositionsin interfaceDbArrayBase
-
toArray
char[] 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
char getPrev(long i) -
getComponentType
- Specified by:
getComponentTypein interfaceDbArrayBase
-
getDirect
DbCharArray 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
-
charValToString
-
primitiveCharValToString
-
toString
Helper method for implementingObject.toString().- Parameters:
array- The DbCharArray 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 DbCharArray)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 DbCharArray to hash- Returns:
- The hash code
-