Package org.apache.calcite.adapter.clone
Interface ArrayTable.Representation
-
- All Known Implementing Classes:
ArrayTable.BitSlicedPrimitiveArray
,ArrayTable.ByteStringDictionary
,ArrayTable.Constant
,ArrayTable.ObjectArray
,ArrayTable.ObjectDictionary
,ArrayTable.PrimitiveArray
,ArrayTable.PrimitiveDictionary
,ArrayTable.StringDictionary
- Enclosing class:
- ArrayTable
public static interface ArrayTable.Representation
Representation of the values of a column.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.Object dataSet)
Converts a data set to a string.
-
-
-
Method Detail
-
getType
ArrayTable.RepresentationType getType()
Returns the representation type.
-
freeze
java.lang.Object freeze(ColumnLoader.ValueSet valueSet, int[] sources)
Converts a value set into a compact representation. Ifsources
is not null, permutes.
-
getObject
java.lang.Object getObject(java.lang.Object dataSet, int ordinal)
-
getInt
int getInt(java.lang.Object dataSet, int ordinal)
-
permute
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.
-
size
int size(java.lang.Object dataSet)
Returns the number of elements in a data set. (Some representations return the capacity, which may be slightly larger than the actual size.)
-
toString
java.lang.String toString(java.lang.Object dataSet)
Converts a data set to a string.
-
-