Class DbByteArrayDirect
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbByteArrayDirect
- All Implemented Interfaces:
DbArrayBase,DbByteArray,LongSizedDataStructure,ToStringWithElements,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbByteArray
DbByteArray.Indirect -
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanbyteget(long i) Return a version of this DbArrayBase that is flattened out to only reference memory.bytegetPrev(long offset) final inthashCode()longsize()The size of this data structure.subArray(long fromIndex, long toIndex) subArrayByPositions(long[] positions) byte[]toArray()final StringtoString()final StringtoString(long maxElements) Unless explicitly overridden, this method will ignore the parameterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.dbarrays.DbArrayBase
isEmptyMethods inherited from interface com.illumon.iris.db.tables.dbarrays.DbByteArray
fillChunk, getComponentType, toChunkMethods inherited from interface com.illumon.iris.db.util.LongSizedDataStructure
intSize, intSize
-
Field Details
-
ZERO_LENGTH_ARRAY
-
-
Constructor Details
-
DbByteArrayDirect
public DbByteArrayDirect(byte... data)
-
-
Method Details
-
get
public byte get(long i) - Specified by:
getin interfaceDbByteArray
-
getPrev
public byte getPrev(long offset) - Specified by:
getPrevin interfaceDbByteArray
-
subArray
- Specified by:
subArrayin interfaceDbArrayBase- Specified by:
subArrayin interfaceDbByteArray
-
subArrayByPositions
- Specified by:
subArrayByPositionsin interfaceDbArrayBase- Specified by:
subArrayByPositionsin interfaceDbByteArray
-
toArray
public byte[] toArray()- Specified by:
toArrayin interfaceDbArrayBase- Specified by:
toArrayin interfaceDbByteArray
-
size
public long size()Description copied from interface:LongSizedDataStructureThe size of this data structure.- Specified by:
sizein interfaceDbByteArray- Specified by:
sizein interfaceLongSizedDataStructure- Returns:
- The size
-
toDbArray
- Specified by:
toDbArrayin interfaceDbArrayBase- Specified by:
toDbArrayin interfaceDbByteArray
-
getDirect
Description copied from interface:DbByteArrayReturn a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirectin interfaceDbArrayBase- Specified by:
getDirectin interfaceDbByteArray
-
toString
-
toString
Description copied from interface:ToStringWithElementsUnless explicitly overridden, this method will ignore the parameter- Specified by:
toStringin interfaceToStringWithElements- Parameters:
maxElements- defines maximum number of elements to include from an array before truncating- Returns:
- a string representation of this object
-
equals
-
hashCode
public final int hashCode()
-