public abstract class PrimitiveConverter extends Converter
| Constructor and Description |
|---|
PrimitiveConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinary(Binary value) |
void |
addBoolean(boolean value) |
void |
addDouble(double value) |
void |
addFloat(float value) |
void |
addInt(int value) |
void |
addLong(long value) |
void |
addValueFromDictionary(int dictionaryId)
add a value based on the dictionary set with setDictionary()
Will be used if the Converter has dictionary support and the data was encoded using a dictionary
|
PrimitiveConverter |
asPrimitiveConverter() |
boolean |
hasDictionarySupport()
if it returns true we will attempt to use dictionary based conversion instead
|
boolean |
isPrimitive() |
void |
setDictionary(Dictionary dictionary)
Set the dictionary to use if the data was encoded using dictionary encoding
and the converter hasDictionarySupport().
|
asGroupConverterpublic boolean isPrimitive()
isPrimitive in class Converterpublic PrimitiveConverter asPrimitiveConverter()
asPrimitiveConverter in class Converterpublic boolean hasDictionarySupport()
public void setDictionary(Dictionary dictionary)
dictionary - the dictionary to use for conversionpublic void addValueFromDictionary(int dictionaryId)
dictionaryId - the id in the dictionary of the value to addpublic void addBinary(Binary value)
value - value to setpublic void addBoolean(boolean value)
value - value to setpublic void addDouble(double value)
value - value to setpublic void addFloat(float value)
value - value to setpublic void addInt(int value)
value - value to setpublic void addLong(long value)
value - value to setCopyright © 2019 The Apache Software Foundation. All rights reserved.