public static enum CompressionFactory.LongEncodingFormat extends Enum<CompressionFactory.LongEncodingFormat>
| Enum Constant and Description | 
|---|
DELTA
DELTA format encodes a series of longs by finding the smallest value first, and stores all values
 as offset to the smallest value. 
 | 
LONGS
LONGS format encodes longs as is, using 8 bytes for each value. 
 | 
TABLE
TABLE format encodes a series of longs by mapping each unique value to an id, and string the id with the
 minimum number of bits similar to how DELTA stores offset. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static CompressionFactory.LongEncodingFormat | 
forId(byte id)  | 
byte | 
getId()  | 
abstract CompressionFactory.LongEncodingReader | 
getReader(ByteBuffer buffer,
         ByteOrder order)  | 
static CompressionFactory.LongEncodingFormat | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static CompressionFactory.LongEncodingFormat[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final CompressionFactory.LongEncodingFormat DELTA
VSizeLongSerde.public static final CompressionFactory.LongEncodingFormat TABLE
CompressionFactory.MAX_TABLE_SIZE.public static final CompressionFactory.LongEncodingFormat LONGS
public static CompressionFactory.LongEncodingFormat[] values()
for (CompressionFactory.LongEncodingFormat c : CompressionFactory.LongEncodingFormat.values()) System.out.println(c);
public static CompressionFactory.LongEncodingFormat 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 nullpublic byte getId()
public abstract CompressionFactory.LongEncodingReader getReader(ByteBuffer buffer, ByteOrder order)
public static CompressionFactory.LongEncodingFormat forId(byte id)
Copyright © 2011–2018. All rights reserved.