Class FilteringPrimitiveConverter
- java.lang.Object
-
- org.apache.parquet.io.api.Converter
-
- org.apache.parquet.io.api.PrimitiveConverter
-
- org.apache.parquet.filter2.recordlevel.FilteringPrimitiveConverter
-
public class FilteringPrimitiveConverter extends PrimitiveConverter
seeFilteringRecordMaterializerThis pass-through proxy for a delegatePrimitiveConverteralso updates theIncrementallyUpdatedFilterPredicate.ValueInspectors of aIncrementallyUpdatedFilterPredicate
-
-
Constructor Summary
Constructors Constructor Description FilteringPrimitiveConverter(PrimitiveConverter delegate, IncrementallyUpdatedFilterPredicate.ValueInspector[] valueInspectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinary(Binary value)voidaddBoolean(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 dictionarybooleanhasDictionarySupport()if 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, isPrimitive
-
Methods inherited from class org.apache.parquet.io.api.Converter
asGroupConverter
-
-
-
-
Constructor Detail
-
FilteringPrimitiveConverter
public FilteringPrimitiveConverter(PrimitiveConverter delegate, IncrementallyUpdatedFilterPredicate.ValueInspector[] valueInspectors)
-
-
Method Detail
-
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
public void setDictionary(Dictionary dictionary)
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
public void addBinary(Binary value)
- 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
-
-