in c3r-sdk-parquet/src/main/java/com/amazonaws/c3r/data/ParquetDataType.java [294:323]
private static ClientDataType getClientDataType(final org.apache.parquet.schema.Type type) {
if (type.isPrimitive()) {
if (isStringType(type)) {
return ClientDataType.STRING;
} else if (isInt32Type(type)) {
return ClientDataType.INT;
} else if (isBigIntType(type)) {
return ClientDataType.BIGINT;
} else if (isSmallIntType(type)) {
return ClientDataType.SMALLINT;
} else if (isDecimalType(type)) {
return ClientDataType.DECIMAL;
} else if (isDateType(type)) {
return ClientDataType.DATE;
} else if (isDoubleType(type)) {
return ClientDataType.DOUBLE;
} else if (isFloatType(type)) {
return ClientDataType.FLOAT;
} else if (isBooleanType(type)) {
return ClientDataType.BOOLEAN;
} else if (isTimestampType(type)) {
return ClientDataType.TIMESTAMP;
} else if (isCharType(type)) {
return ClientDataType.CHAR;
} else {
return ClientDataType.UNKNOWN;
}
}
return ClientDataType.UNKNOWN;
}