Java Code Examples for org.apache.parquet.schema.Type.Repetition#valueOf()
The following examples show how to use
org.apache.parquet.schema.Type.Repetition#valueOf() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MessageTypeParser.java From parquet-mr with Apache License 2.0 | 5 votes |
private static Repetition asRepetition(String t, Tokenizer st) { try { return Repetition.valueOf(t.toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("expected one of " + Arrays.toString(Repetition.values()) +" got " + t + " at " + st.getLocationString(), e); } }
Example 2
Source File: ParquetMetadataConverter.java From parquet-mr with Apache License 2.0 | 4 votes |
Repetition fromParquetRepetition(FieldRepetitionType repetition) { return Repetition.valueOf(repetition.name()); }