use of com.netflix.metacat.connector.s3.model.Field in project metacat by Netflix.
the class S3ConnectorInfoConverter method toField.
/**
* Converts from column metadata to field.
* @param fieldInfo column
* @return field
*/
public Field toField(final FieldInfo fieldInfo) {
final Field result = new Field();
result.setName(fieldInfo.getName());
result.setPartitionKey(fieldInfo.isPartitionKey());
result.setComment(fieldInfo.getComment());
result.setSourceType(fieldInfo.getSourceType());
result.setType(toTypeString(fieldInfo.getType()));
return result;
}
Aggregations