use of com.netflix.metacat.connector.s3.model.Info in project metacat by Netflix.
the class S3ConnectorInfoConverter method fromTableInfo.
/**
* Creates the s3 table.
* @param database s3 database
* @param tableInfo table info
* @return s3 table
*/
public Table fromTableInfo(final Database database, final TableInfo tableInfo) {
final Table result = fromTableInfo(tableInfo);
result.setDatabase(database);
return result;
}
use of com.netflix.metacat.connector.s3.model.Info in project metacat by Netflix.
the class S3ConnectorInfoConverter method toPartition.
/**
* Creates s3 partition.
* @param table table
* @param partitionInfo partition info
* @return partition
*/
public Partition toPartition(final Table table, final PartitionInfo partitionInfo) {
final Partition result = fromPartitionInfo(partitionInfo);
result.setTable(table);
return result;
}
Aggregations