Class FilteringPrimitiveConverter
java.lang.Object
org.apache.parquet.io.api.Converter
org.apache.parquet.io.api.PrimitiveConverter
org.apache.parquet.filter2.recordlevel.FilteringPrimitiveConverter
see
FilteringRecordMaterializer
This pass-through proxy for a delegate PrimitiveConverter also
updates the IncrementallyUpdatedFilterPredicate.ValueInspectors of a IncrementallyUpdatedFilterPredicate
-
Constructor Summary
ConstructorsConstructorDescriptionFilteringPrimitiveConverter(PrimitiveConverter delegate, IncrementallyUpdatedFilterPredicate.ValueInspector[] valueInspectors) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddBoolean(boolean value) voidaddDouble(double value) voidaddFloat(float value) voidaddInt(int value) voidaddLong(long value) voidaddValueFromDictionary(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 dictionarybooleanif it returns true we will attempt to use dictionary based conversion insteadvoidsetDictionary(Dictionary dictionary) Set the dictionary to use if the data was encoded using dictionary encoding and the converter hasDictionarySupport().Methods inherited from class org.apache.parquet.io.api.PrimitiveConverter
asPrimitiveConverter, isPrimitiveMethods inherited from class org.apache.parquet.io.api.Converter
asGroupConverter
-
Constructor Details
-
FilteringPrimitiveConverter
public FilteringPrimitiveConverter(PrimitiveConverter delegate, IncrementallyUpdatedFilterPredicate.ValueInspector[] valueInspectors)
-
-
Method Details
-
hasDictionarySupport
public boolean hasDictionarySupport()Description copied from class:PrimitiveConverterif it returns true we will attempt to use dictionary based conversion instead- Overrides:
hasDictionarySupportin classPrimitiveConverter- Returns:
- if dictionary is supported
-
setDictionary
Description copied from class:PrimitiveConverterSet the dictionary to use if the data was encoded using dictionary encoding and the converter hasDictionarySupport().- Overrides:
setDictionaryin classPrimitiveConverter- Parameters:
dictionary- the dictionary to use for conversion
-
addValueFromDictionary
public void addValueFromDictionary(int dictionaryId) Description copied from class:PrimitiveConverteradd 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- Overrides:
addValueFromDictionaryin classPrimitiveConverter- Parameters:
dictionaryId- the id in the dictionary of the value to add
-
addBinary
- Overrides:
addBinaryin classPrimitiveConverter- Parameters:
value- value to set
-
addBoolean
public void addBoolean(boolean value) - Overrides:
addBooleanin classPrimitiveConverter- Parameters:
value- value to set
-
addDouble
public void addDouble(double value) - Overrides:
addDoublein classPrimitiveConverter- Parameters:
value- value to set
-
addFloat
public void addFloat(float value) - Overrides:
addFloatin classPrimitiveConverter- Parameters:
value- value to set
-
addInt
public void addInt(int value) - Overrides:
addIntin classPrimitiveConverter- Parameters:
value- value to set
-
addLong
public void addLong(long value) - Overrides:
addLongin classPrimitiveConverter- Parameters:
value- value to set
-