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

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

Introduction

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

Prototype


public void setParameters(java.util.Map<String, String> parameters) 

Source Link

Document

These key-value pairs define parameters and properties 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;
}