static class ColumnLoader.ValueSet extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Class |
clazz |
(package private) boolean |
containsNull |
(package private) Map<Comparable,Comparable> |
map |
(package private) Comparable |
max |
(package private) Comparable |
min |
(package private) List<Comparable> |
values |
| Modifier and Type | Method and Description |
|---|---|
private static int |
abs2(int v)
Two's complement absolute on int value.
|
private static long |
abs2(long v)
Two's complement absolute on long value.
|
(package private) void |
add(Comparable e) |
private boolean |
canBeLong(Object o) |
private ArrayTable.Representation |
chooseFixedRep(int ordinal,
Primitive p,
long min,
long max)
Chooses a representation for a fixed-precision primitive type
(boolean, byte, char, short, int, long).
|
(package private) ArrayTable.Representation |
chooseRep(int ordinal) |
(package private) ArrayTable.Column |
freeze(int ordinal,
int[] sources)
Freezes the contents of this value set into a column, optionally
re-ordering if
sources is specified. |
private long |
toLong(Object o) |
final Class clazz
final Map<Comparable,Comparable> map
final List<Comparable> values
Comparable min
Comparable max
boolean containsNull
ValueSet(Class clazz)
void add(Comparable e)
ArrayTable.Column freeze(int ordinal, int[] sources)
sources is specified.ArrayTable.Representation chooseRep(int ordinal)
private long toLong(Object o)
private boolean canBeLong(Object o)
private ArrayTable.Representation chooseFixedRep(int ordinal, Primitive p, long min, long max)
ordinal - Ordinal of this column in tablep - Type that values are to be returned as (not necessarily the
same as they will be stored)min - Minimum value to be encodedmax - Maximum value to be encoded (inclusive)private static int abs2(int v)
private static long abs2(long v)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.