Package org.apache.parquet.column
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, likehasNonDictionaryEncodedPages().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncodingStats.BuilderUsed to buildEncodingStatsfrom metadata or to accumulate stats as pages are written.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Encoding>getDataEncodings()Set<Encoding>getDictionaryEncodings()intgetNumDataPagesEncodedAs(Encoding enc)intgetNumDictionaryPagesEncodedAs(Encoding enc)booleanhasDictionaryEncodedPages()booleanhasDictionaryPages()booleanhasNonDictionaryEncodedPages()booleanusesV2Pages()
-
-
-
Method Detail
-
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()
-
-