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

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

Introduction

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

Prototype


public void setName(String name) 

Source Link

Document

The name of the database.

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;
}