Interface DbDoubleArray
- All Superinterfaces:
DbArrayBase
,LongSizedDataStructure
,Serializable
,ToStringWithElements
- All Known Implementing Classes:
DbDoubleArray.Indirect
,DbDoubleArrayColumnWrapper
,DbDoubleArrayDirect
,DbDoubleArrayImmutableColumnWrapper
,DbDoubleArraySlice
,DbPrevDoubleArrayColumnWrapper
,DbSubDoubleArray
,DoubleSegmentedSortedMultiset
public interface DbDoubleArray extends DbArrayBase
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DbDoubleArray.Indirect
Base class for all "indirect" DbDoubleArray implementations. -
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
Fields inherited from interface com.illumon.iris.gui.table.format.ToStringWithElements
ARRAY_SIZE_WARNING, DEFAULT_ARRAY_SIZE_COPY, MAX_ARRAY_SIZE_COPY
-
Method Summary
Modifier and Type Method Description static String
doubleValToString(Object val)
static boolean
equals(DbDoubleArray aArray, Object b)
Helper method for implementingObject.equals(Object)
.default void
fillChunk(WritableChunk<?> destChunk)
double
get(long i)
default Class<?>
getComponentType()
DbDoubleArray
getDirect()
Return a version of this DbArrayBase that is flattened out to only reference memory.double
getPrev(long i)
static int
hashCode(DbDoubleArray array)
Helper method for implementingObject.hashCode()
.static String
primitiveDoubleValToString(double val)
long
size()
The size of this data structure.DbDoubleArray
subArray(long fromIndex, long toIndex)
DbDoubleArray
subArrayByPositions(long[] positions)
double[]
toArray()
default Chunk<Attributes.Values>
toChunk()
DbArray<Double>
toDbArray()
static String
toString(DbDoubleArray array)
static String
toString(DbDoubleArray array, long maxElements)
Helper method for implementingObject.toString()
.
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Method Details
-
get
double get(long i) -
subArray
- Specified by:
subArray
in interfaceDbArrayBase
-
subArrayByPositions
- Specified by:
subArrayByPositions
in interfaceDbArrayBase
-
toArray
double[] toArray()- Specified by:
toArray
in interfaceDbArrayBase
-
size
long size()Description copied from interface:LongSizedDataStructure
The size of this data structure.- Specified by:
size
in interfaceLongSizedDataStructure
- Returns:
- The size
-
toDbArray
- Specified by:
toDbArray
in interfaceDbArrayBase
-
getPrev
double getPrev(long i) -
getComponentType
- Specified by:
getComponentType
in interfaceDbArrayBase
-
getDirect
DbDoubleArray getDirect()Return a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirect
in interfaceDbArrayBase
-
toChunk
- Specified by:
toChunk
in interfaceDbArrayBase
-
fillChunk
- Specified by:
fillChunk
in interfaceDbArrayBase
-
doubleValToString
-
primitiveDoubleValToString
-
toString
Helper method for implementingObject.toString()
.- Parameters:
array
- The DbDoubleArray 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 DbDoubleArray)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 DbDoubleArray to hash- Returns:
- The hash code
-