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
  • Constructor Details

  • Method Details

    • hasDictionarySupport

      public boolean hasDictionarySupport()
      Description copied from class: PrimitiveConverter
      if it returns true we will attempt to use dictionary based conversion instead
      Overrides:
      hasDictionarySupport in class PrimitiveConverter
      Returns:
      if dictionary is supported
    • setDictionary

      public void setDictionary(Dictionary dictionary)
      Description copied from class: PrimitiveConverter
      Set the dictionary to use if the data was encoded using dictionary encoding and the converter hasDictionarySupport().
      Overrides:
      setDictionary in class PrimitiveConverter
      Parameters:
      dictionary - the dictionary to use for conversion
    • addValueFromDictionary

      public void addValueFromDictionary(int dictionaryId)
      Description copied from class: PrimitiveConverter
      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
      Overrides:
      addValueFromDictionary in class PrimitiveConverter
      Parameters:
      dictionaryId - the id in the dictionary of the value to add
    • addBinary

      public void addBinary(Binary value)
      Overrides:
      addBinary in class PrimitiveConverter
      Parameters:
      value - value to set
    • addBoolean

      public void addBoolean(boolean value)
      Overrides:
      addBoolean in class PrimitiveConverter
      Parameters:
      value - value to set
    • addDouble

      public void addDouble(double value)
      Overrides:
      addDouble in class PrimitiveConverter
      Parameters:
      value - value to set
    • addFloat

      public void addFloat(float value)
      Overrides:
      addFloat in class PrimitiveConverter
      Parameters:
      value - value to set
    • addInt

      public void addInt(int value)
      Overrides:
      addInt in class PrimitiveConverter
      Parameters:
      value - value to set
    • addLong

      public void addLong(long value)
      Overrides:
      addLong in class PrimitiveConverter
      Parameters:
      value - value to set