Class DbFloatArrayDirect
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbFloatArrayDirect
- All Implemented Interfaces:
DbArrayBase,DbFloatArray,LongSizedDataStructure,ToStringWithElements,Serializable
public class DbFloatArrayDirect extends Object implements DbFloatArray
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbFloatArray
DbFloatArray.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 DbFloatArrayDirect(float... data) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)floatget(long i)DbFloatArrayDirectgetDirect()Return a version of this DbArrayBase that is flattened out to only reference memory.floatgetPrev(long offset)inthashCode()longsize()The size of this data structure.DbFloatArraysubArray(long fromIndex, long toIndex)DbFloatArraysubArrayByPositions(long[] positions)float[]toArray()DbArray<Float>toDbArray()StringtoString()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.DbFloatArray
fillChunk, getComponentType, toChunk
-
Constructor Details
-
DbFloatArrayDirect
public DbFloatArrayDirect(float... data)
-
-
Method Details
-
get
public float get(long i)- Specified by:
getin interfaceDbFloatArray
-
getPrev
public float getPrev(long offset)- Specified by:
getPrevin interfaceDbFloatArray
-
subArray
- Specified by:
subArrayin interfaceDbArrayBase- Specified by:
subArrayin interfaceDbFloatArray
-
subArrayByPositions
- Specified by:
subArrayByPositionsin interfaceDbArrayBase- Specified by:
subArrayByPositionsin interfaceDbFloatArray
-
toArray
public float[] toArray()- Specified by:
toArrayin interfaceDbArrayBase- Specified by:
toArrayin interfaceDbFloatArray
-
size
public long size()Description copied from interface:LongSizedDataStructureThe size of this data structure.- Specified by:
sizein interfaceDbFloatArray- Specified by:
sizein interfaceLongSizedDataStructure- Returns:
- The size
-
toDbArray
- Specified by:
toDbArrayin interfaceDbArrayBase- Specified by:
toDbArrayin interfaceDbFloatArray
-
getDirect
Description copied from interface:DbFloatArrayReturn a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirectin interfaceDbArrayBase- Specified by:
getDirectin interfaceDbFloatArray
-
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()
-