Class EncodingStats

java.lang.Object
org.apache.parquet.column.EncodingStats

public class EncodingStats extends Object
EncodingStats track dictionary and data page encodings for a single column within a row group. These are used when filtering row groups. For example, to filter a row group based on a column's dictionary, all of the data pages in that column must be dictionary-encoded. This class provides convenience methods for those checks, like hasNonDictionaryEncodedPages().
  • Method Details

    • getDictionaryEncodings

      public Set<Encoding> getDictionaryEncodings()
    • getDataEncodings

      public Set<Encoding> getDataEncodings()
    • getNumDictionaryPagesEncodedAs

      public int getNumDictionaryPagesEncodedAs(Encoding enc)
    • getNumDataPagesEncodedAs

      public int getNumDataPagesEncodedAs(Encoding enc)
    • hasDictionaryPages

      public boolean hasDictionaryPages()
    • hasDictionaryEncodedPages

      public boolean hasDictionaryEncodedPages()
    • hasNonDictionaryEncodedPages

      public boolean hasNonDictionaryEncodedPages()
    • usesV2Pages

      public boolean usesV2Pages()