List of usage examples for com.amazonaws.services.glue.model TableInput setOwner
public void setOwner(String owner)
The table owner.
From source file:com.facebook.presto.hive.metastore.glue.converter.GlueInputConverter.java
License:Apache License
public static TableInput convertTable(Table table) { TableInput input = new TableInput(); input.setName(table.getTableName()); input.setOwner(table.getOwner()); input.setTableType(table.getTableType()); input.setStorageDescriptor(convertStorage(table.getStorage(), table.getDataColumns())); input.setPartitionKeys(//from w w w . j a v a 2 s .com table.getPartitionColumns().stream().map(GlueInputConverter::convertColumn).collect(toList())); input.setParameters(table.getParameters()); table.getViewOriginalText().ifPresent(input::setViewOriginalText); table.getViewExpandedText().ifPresent(input::setViewExpandedText); return input; }