Java Code Examples for org.apache.parquet.format.ConvertedType#DATE
The following examples show how to use
org.apache.parquet.format.ConvertedType#DATE .
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: MessageTypeConverter.java From presto with Apache License 2.0 | 4 votes |
private static ConvertedType getConvertedType(OriginalType type) { switch (type) { case UTF8: return ConvertedType.UTF8; case MAP: return ConvertedType.MAP; case MAP_KEY_VALUE: return ConvertedType.MAP_KEY_VALUE; case LIST: return ConvertedType.LIST; case ENUM: return ConvertedType.ENUM; case DECIMAL: return ConvertedType.DECIMAL; case DATE: return ConvertedType.DATE; case TIME_MILLIS: return ConvertedType.TIME_MILLIS; case TIMESTAMP_MILLIS: return ConvertedType.TIMESTAMP_MILLIS; case INTERVAL: return ConvertedType.INTERVAL; case INT_8: return ConvertedType.INT_8; case INT_16: return ConvertedType.INT_16; case INT_32: return ConvertedType.INT_32; case INT_64: return ConvertedType.INT_64; case UINT_8: return ConvertedType.UINT_8; case UINT_16: return ConvertedType.UINT_16; case UINT_32: return ConvertedType.UINT_32; case UINT_64: return ConvertedType.UINT_64; case JSON: return ConvertedType.JSON; case BSON: return ConvertedType.BSON; default: throw new RuntimeException("Unknown original type " + type); } }