public static class ArrayTable.PrimitiveArray extends java.lang.Object implements ArrayTable.Representation
Modifier and Type | Field and Description |
---|---|
(package private) int |
ordinal |
private Primitive |
p |
private Primitive |
primitive |
Constructor and Description |
---|
PrimitiveArray(int ordinal,
Primitive primitive,
Primitive p) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
freeze(ColumnLoader.ValueSet valueSet,
int[] sources)
Converts a value set into a compact representation.
|
int |
getInt(java.lang.Object dataSet,
int ordinal) |
java.lang.Object |
getObject(java.lang.Object dataSet,
int ordinal) |
ArrayTable.RepresentationType |
getType()
Returns the representation type.
|
java.lang.Object |
permute(java.lang.Object dataSet,
int[] sources)
Creates a data set that is the same as a given data set
but re-ordered.
|
int |
size(java.lang.Object dataSet)
Returns the number of elements in a data set.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.Object dataSet)
Converts a data set to a string.
|
final int ordinal
private final Primitive primitive
private final Primitive p
public java.lang.String toString()
toString
in class java.lang.Object
public ArrayTable.RepresentationType getType()
ArrayTable.Representation
getType
in interface ArrayTable.Representation
public java.lang.Object freeze(ColumnLoader.ValueSet valueSet, int[] sources)
ArrayTable.Representation
sources
is not null, permutes.freeze
in interface ArrayTable.Representation
public java.lang.Object permute(java.lang.Object dataSet, int[] sources)
ArrayTable.Representation
permute
in interface ArrayTable.Representation
public java.lang.Object getObject(java.lang.Object dataSet, int ordinal)
getObject
in interface ArrayTable.Representation
public int getInt(java.lang.Object dataSet, int ordinal)
getInt
in interface ArrayTable.Representation
public int size(java.lang.Object dataSet)
ArrayTable.Representation
size
in interface ArrayTable.Representation
public java.lang.String toString(java.lang.Object dataSet)
ArrayTable.Representation
toString
in interface ArrayTable.Representation
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.