/** * <p> * A storage descriptor containing information about the physical storage of this table. * </p> * * @param storageDescriptor * A storage descriptor containing information about the physical storage of this table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableInput withStorageDescriptor(StorageDescriptor storageDescriptor) { setStorageDescriptor(storageDescriptor); return this; }
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(table.getPartitionColumns().stream().map(GlueInputConverter::convertColumn).collect(toList())); input.setParameters(table.getParameters()); table.getViewOriginalText().ifPresent(input::setViewOriginalText); table.getViewExpandedText().ifPresent(input::setViewExpandedText); return input; }
tableInput.setStorageDescriptor(StorageDescriptorJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * A storage descriptor containing information about the physical storage of this table. * </p> * * @param storageDescriptor * A storage descriptor containing information about the physical storage of this table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableInput withStorageDescriptor(StorageDescriptor storageDescriptor) { setStorageDescriptor(storageDescriptor); return this; }
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(table.getPartitionColumns().stream().map(GlueInputConverter::convertColumn).collect(toList())); input.setParameters(table.getParameters()); table.getViewOriginalText().ifPresent(input::setViewOriginalText); table.getViewExpandedText().ifPresent(input::setViewExpandedText); return input; }
tableInput.setStorageDescriptor(StorageDescriptorJsonUnmarshaller.getInstance().unmarshall(context));