Package org.apache.parquet.format
Enum ColumnIndex._Fields
- java.lang.Object
-
- java.lang.Enum<ColumnIndex._Fields>
-
- org.apache.parquet.format.ColumnIndex._Fields
-
- All Implemented Interfaces:
Serializable,Comparable<ColumnIndex._Fields>,org.apache.thrift.TFieldIdEnum
- Enclosing class:
- ColumnIndex
public static enum ColumnIndex._Fields extends Enum<ColumnIndex._Fields> implements org.apache.thrift.TFieldIdEnum
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOUNDARY_ORDERStores whether both min_values and max_values are ordered and if so, in which direction.DEFINITION_LEVEL_HISTOGRAMSSame as repetition_level_histograms except for definitions levels.MAX_VALUESMIN_VALUESTwo lists containing lower and upper bounds for the values of each page determined by the ColumnOrder of the column.NULL_COUNTSA list containing the number of null values for each page Writers SHOULD always write this field even if no null values are present or the column is not nullable.NULL_PAGESA list of Boolean values to determine the validity of the corresponding min and max values.REPETITION_LEVEL_HISTOGRAMSContains repetition level histograms for each page concatenated together.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColumnIndex._FieldsfindByName(String name)Find the _Fields constant that matches name, or null if its not found.static ColumnIndex._FieldsfindByThriftId(int fieldId)Find the _Fields constant that matches fieldId, or null if its not found.static ColumnIndex._FieldsfindByThriftIdOrThrow(int fieldId)Find the _Fields constant that matches fieldId, throwing an exception if it is not found.StringgetFieldName()shortgetThriftFieldId()static ColumnIndex._FieldsvalueOf(String name)Returns the enum constant of this type with the specified name.static ColumnIndex._Fields[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL_PAGES
public static final ColumnIndex._Fields NULL_PAGES
A list of Boolean values to determine the validity of the corresponding min and max values. If true, a page contains only null values, and writers have to set the corresponding entries in min_values and max_values to byte[0], so that all lists have the same length. If false, the corresponding entries in min_values and max_values must be valid.
-
MIN_VALUES
public static final ColumnIndex._Fields MIN_VALUES
Two lists containing lower and upper bounds for the values of each page determined by the ColumnOrder of the column. These may be the actual minimum and maximum values found on a page, but can also be (more compact) values that do not exist on a page. For example, instead of storing ""Blart Versenwald III", a writer may set min_values[i]="B", max_values[i]="C". Such more compact values must still be valid values within the column's logical type. Readers must make sure that list entries are populated before using them by inspecting null_pages.
-
MAX_VALUES
public static final ColumnIndex._Fields MAX_VALUES
-
BOUNDARY_ORDER
public static final ColumnIndex._Fields BOUNDARY_ORDER
Stores whether both min_values and max_values are ordered and if so, in which direction. This allows readers to perform binary searches in both lists. Readers cannot assume that max_values[i] <= min_values[i+1], even if the lists are ordered.- See Also:
BoundaryOrder
-
NULL_COUNTS
public static final ColumnIndex._Fields NULL_COUNTS
A list containing the number of null values for each page Writers SHOULD always write this field even if no null values are present or the column is not nullable. Readers MUST distinguish between null_counts not being present and null_count being 0. If null_counts are not present, readers MUST NOT assume all null counts are 0.
-
REPETITION_LEVEL_HISTOGRAMS
public static final ColumnIndex._Fields REPETITION_LEVEL_HISTOGRAMS
Contains repetition level histograms for each page concatenated together. The repetition_level_histogram field on SizeStatistics contains more details. When present the length should always be (number of pages * (max_repetition_level + 1)) elements. Element 0 is the first element of the histogram for the first page. Element (max_repetition_level + 1) is the first element of the histogram for the second page.
-
DEFINITION_LEVEL_HISTOGRAMS
public static final ColumnIndex._Fields DEFINITION_LEVEL_HISTOGRAMS
Same as repetition_level_histograms except for definitions levels.
-
-
Method Detail
-
values
public static ColumnIndex._Fields[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColumnIndex._Fields c : ColumnIndex._Fields.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnIndex._Fields valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
findByThriftId
public static ColumnIndex._Fields findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
-
findByThriftIdOrThrow
public static ColumnIndex._Fields findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
-
findByName
public static ColumnIndex._Fields findByName(String name)
Find the _Fields constant that matches name, or null if its not found.
-
getThriftFieldId
public short getThriftFieldId()
- Specified by:
getThriftFieldIdin interfaceorg.apache.thrift.TFieldIdEnum
-
getFieldName
public String getFieldName()
- Specified by:
getFieldNamein interfaceorg.apache.thrift.TFieldIdEnum
-
-