static enum ArrayTable.RepresentationType extends Enum<ArrayTable.RepresentationType>
| Enum Constant and Description |
|---|
BIT_SLICED_PRIMITIVE_ARRAY
Bit-sliced primitive array.
|
BYTE_STRING_DICTIONARY
Compressed byte array table.
|
CONSTANT
Constant.
|
OBJECT_ARRAY
Object array.
|
OBJECT_DICTIONARY
Dictionary of objects.
|
PRIMITIVE_ARRAY
Array of primitives.
|
PRIMITIVE_DICTIONARY
Dictionary of primitives.
|
STRING_DICTIONARY
Compressed string table.
|
| Modifier and Type | Method and Description |
|---|---|
static ArrayTable.RepresentationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArrayTable.RepresentationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayTable.RepresentationType CONSTANT
We can't store 0-bit values in an array: we'd have no way of knowing how many there were.
ArrayTable.Constantpublic static final ArrayTable.RepresentationType OBJECT_ARRAY
ArrayTable.ObjectArraypublic static final ArrayTable.RepresentationType PRIMITIVE_ARRAY
ArrayTable.PrimitiveArraypublic static final ArrayTable.RepresentationType BIT_SLICED_PRIMITIVE_ARRAY
bitCount bits each,
and interpreted as signed. Stored as an array of long values.
If gcd(bitCount, 64) != 0, some values will cross boundaries. bits each. But for all of those values except 4, there is a primitive type (8 byte, 16 short, 32 int) which is more efficient.
ArrayTable.BitSlicedPrimitiveArraypublic static final ArrayTable.RepresentationType PRIMITIVE_DICTIONARY
The dictionary is not beneficial unless the codes are
significantly shorter than the values. A column of long
values with many duplicates is a win; a column of mostly distinct
short values is likely a loss. The other win is if there are
null values; otherwise the best option would be an
OBJECT_ARRAY.
ArrayTable.PrimitiveDictionarypublic static final ArrayTable.RepresentationType OBJECT_DICTIONARY
ArrayTable.ObjectDictionarypublic static final ArrayTable.RepresentationType STRING_DICTIONARY
First 2 bytes are unsigned length; subsequent bytes are string contents. The null value, strings longer than 64k and strings that occur very commonly are held in an 'exceptions' array and are recognized by their high offsets. Other strings are created on demand (this reduces the number of objects that need to be created during deserialization from cache.
ArrayTable.StringDictionarypublic static final ArrayTable.RepresentationType BYTE_STRING_DICTIONARY
ArrayTable.ByteStringDictionarypublic static ArrayTable.RepresentationType[] values()
for (ArrayTable.RepresentationType c : ArrayTable.RepresentationType.values()) System.out.println(c);
public static ArrayTable.RepresentationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.