Class DbByteArrayDirect
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbByteArrayDirect
- All Implemented Interfaces:
DbArrayBase
,DbByteArray
,LongSizedDataStructure
,ToStringWithElements
,Serializable
public class DbByteArrayDirect extends Object implements DbByteArray
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbByteArray
DbByteArray.Indirect
-
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 DbByteArrayDirect(byte... data)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
byte
get(long i)
DbByteArrayDirect
getDirect()
Return a version of this DbArrayBase that is flattened out to only reference memory.byte
getPrev(long offset)
int
hashCode()
long
size()
The size of this data structure.DbByteArray
subArray(long fromIndex, long toIndex)
DbByteArray
subArrayByPositions(long[] positions)
byte[]
toArray()
DbArray<Byte>
toDbArray()
String
toString()
String
toString(long maxElements)
Unless explicitly overridden, this method will ignore the parameterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.tables.dbarrays.DbByteArray
fillChunk, getComponentType, toChunk
-
Constructor Details
-
DbByteArrayDirect
public DbByteArrayDirect(byte... data)
-
-
Method Details
-
get
public byte get(long i)- Specified by:
get
in interfaceDbByteArray
-
getPrev
public byte getPrev(long offset)- Specified by:
getPrev
in interfaceDbByteArray
-
subArray
- Specified by:
subArray
in interfaceDbArrayBase
- Specified by:
subArray
in interfaceDbByteArray
-
subArrayByPositions
- Specified by:
subArrayByPositions
in interfaceDbArrayBase
- Specified by:
subArrayByPositions
in interfaceDbByteArray
-
toArray
public byte[] toArray()- Specified by:
toArray
in interfaceDbArrayBase
- Specified by:
toArray
in interfaceDbByteArray
-
size
public long size()Description copied from interface:LongSizedDataStructure
The size of this data structure.- Specified by:
size
in interfaceDbByteArray
- Specified by:
size
in interfaceLongSizedDataStructure
- Returns:
- The size
-
toDbArray
- Specified by:
toDbArray
in interfaceDbArrayBase
- Specified by:
toDbArray
in interfaceDbByteArray
-
getDirect
Description copied from interface:DbByteArray
Return a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirect
in interfaceDbArrayBase
- Specified by:
getDirect
in interfaceDbByteArray
-
toString
-
toString
Description copied from interface:ToStringWithElements
Unless explicitly overridden, this method will ignore the parameter- Specified by:
toString
in 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()
-