Example usage for com.amazonaws.services.glue.model DatabaseInput DatabaseInput

List of usage examples for com.amazonaws.services.glue.model DatabaseInput DatabaseInput

Introduction

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

Prototype

DatabaseInput

Source Link

Usage

From source file:com.facebook.presto.hive.metastore.glue.converter.GlueInputConverter.java

License:Apache License

public static DatabaseInput convertDatabase(Database database) {
    DatabaseInput input = new DatabaseInput();
    input.setName(database.getDatabaseName());
    input.setParameters(database.getParameters());
    database.getComment().ifPresent(input::setDescription);
    database.getLocation().ifPresent(input::setLocationUri);
    return input;
}