Package org.apache.parquet.format
Enum SizeStatistics._Fields
- java.lang.Object
-
- java.lang.Enum<SizeStatistics._Fields>
-
- org.apache.parquet.format.SizeStatistics._Fields
-
- All Implemented Interfaces:
Serializable,Comparable<SizeStatistics._Fields>,org.apache.thrift.TFieldIdEnum
- Enclosing class:
- SizeStatistics
public static enum SizeStatistics._Fields extends Enum<SizeStatistics._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 DEFINITION_LEVEL_HISTOGRAMSame as repetition_level_histogram except for definition levels.REPETITION_LEVEL_HISTOGRAMWhen present, there is expected to be one element corresponding to each repetition (i.e. size=max repetition_level+1) where each element represents the number of times the repetition level was observed in the data.UNENCODED_BYTE_ARRAY_DATA_BYTESThe number of physical bytes stored for BYTE_ARRAY data values assuming no encoding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SizeStatistics._FieldsfindByName(String name)Find the _Fields constant that matches name, or null if its not found.static SizeStatistics._FieldsfindByThriftId(int fieldId)Find the _Fields constant that matches fieldId, or null if its not found.static SizeStatistics._FieldsfindByThriftIdOrThrow(int fieldId)Find the _Fields constant that matches fieldId, throwing an exception if it is not found.StringgetFieldName()shortgetThriftFieldId()static SizeStatistics._FieldsvalueOf(String name)Returns the enum constant of this type with the specified name.static SizeStatistics._Fields[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNENCODED_BYTE_ARRAY_DATA_BYTES
public static final SizeStatistics._Fields UNENCODED_BYTE_ARRAY_DATA_BYTES
The number of physical bytes stored for BYTE_ARRAY data values assuming no encoding. This is exclusive of the bytes needed to store the length of each byte array. In other words, this field is equivalent to the `(size of PLAIN-ENCODING the byte array values) - (4 bytes * number of values written)`. To determine unencoded sizes of other types readers can use schema information multiplied by the number of non-null and null values. The number of null/non-null values can be inferred from the histograms below. For example, if a column chunk is dictionary-encoded with dictionary ["a", "bc", "cde"], and a data page contains the indices [0, 0, 1, 2], then this value for that data page should be 7 (1 + 1 + 2 + 3). This field should only be set for types that use BYTE_ARRAY as their physical type.
-
REPETITION_LEVEL_HISTOGRAM
public static final SizeStatistics._Fields REPETITION_LEVEL_HISTOGRAM
When present, there is expected to be one element corresponding to each repetition (i.e. size=max repetition_level+1) where each element represents the number of times the repetition level was observed in the data. This field may be omitted if max_repetition_level is 0 without loss of information.
-
DEFINITION_LEVEL_HISTOGRAM
public static final SizeStatistics._Fields DEFINITION_LEVEL_HISTOGRAM
Same as repetition_level_histogram except for definition levels. This field may be omitted if max_definition_level is 0 or 1 without loss of information.
-
-
Method Detail
-
values
public static SizeStatistics._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 (SizeStatistics._Fields c : SizeStatistics._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 SizeStatistics._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 SizeStatistics._Fields findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
-
findByThriftIdOrThrow
public static SizeStatistics._Fields findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
-
findByName
public static SizeStatistics._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
-
-