Example usage for com.amazonaws.services.glue.model TableInput setName

List of usage examples for com.amazonaws.services.glue.model TableInput setName

Introduction

In this page you can find the example usage for com.amazonaws.services.glue.model TableInput setName.

Prototype


public void setName(String name) 

Source Link

Document

The table name.

Usage

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());/*  w  ww  .j a v  a2 s.c  om*/
    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;
}