Class DbFloatArrayDirect
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbFloatArrayDirect
- All Implemented Interfaces:
DbArrayBase
,DbFloatArray
,LongSizedDataStructure
,ToStringWithElements
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbFloatArray
DbFloatArray.Indirect
-
Field Summary
FieldsFields inherited from interface com.illumon.iris.db.tables.dbarrays.DbArrayBase
NULL_ELEMENT_STRING
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
float
get
(long i) Return a version of this DbArrayBase that is flattened out to only reference memory.float
getPrev
(long offset) final int
hashCode()
long
size()
The size of this data structure.subArray
(long fromIndex, long toIndex) subArrayByPositions
(long[] positions) float[]
toArray()
final String
toString()
final 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.DbArrayBase
isEmpty
Methods inherited from interface com.illumon.iris.db.tables.dbarrays.DbFloatArray
fillChunk, getComponentType, toChunk
Methods inherited from interface com.illumon.iris.db.util.LongSizedDataStructure
intSize, intSize
-
Field Details
-
ZERO_LENGTH_ARRAY
-
-
Constructor Details
-
DbFloatArrayDirect
public DbFloatArrayDirect(float... data)
-
-
Method Details
-
get
public float get(long i) - Specified by:
get
in interfaceDbFloatArray
-
getPrev
public float getPrev(long offset) - Specified by:
getPrev
in interfaceDbFloatArray
-
subArray
- Specified by:
subArray
in interfaceDbArrayBase
- Specified by:
subArray
in interfaceDbFloatArray
-
subArrayByPositions
- Specified by:
subArrayByPositions
in interfaceDbArrayBase
- Specified by:
subArrayByPositions
in interfaceDbFloatArray
-
toArray
public float[] toArray()- Specified by:
toArray
in interfaceDbArrayBase
- Specified by:
toArray
in interfaceDbFloatArray
-
size
public long size()Description copied from interface:LongSizedDataStructure
The size of this data structure.- Specified by:
size
in interfaceDbFloatArray
- Specified by:
size
in interfaceLongSizedDataStructure
- Returns:
- The size
-
toDbArray
- Specified by:
toDbArray
in interfaceDbArrayBase
- Specified by:
toDbArray
in interfaceDbFloatArray
-
getDirect
Description copied from interface:DbFloatArray
Return a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirect
in interfaceDbArrayBase
- Specified by:
getDirect
in interfaceDbFloatArray
-
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()
-