Example usage for com.amazonaws.services.glue.model PartitionInput getParameters

List of usage examples for com.amazonaws.services.glue.model PartitionInput getParameters

Introduction

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

Prototype


public java.util.Map<String, String> getParameters() 

Source Link

Document

These key-value pairs define partition parameters.

Usage

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

License:Apache License

public static PartitionInput convertPartition(PartitionWithStatistics partitionWithStatistics) {
    PartitionInput input = convertPartition(partitionWithStatistics.getPartition());
    PartitionStatistics statistics = partitionWithStatistics.getStatistics();
    if (!statistics.getColumnStatistics().isEmpty()) {
        throw new PrestoException(NOT_SUPPORTED, "Glue metastore does not support column level statistics");
    }//from w  w w. ja  va2  s  . co  m
    input.setParameters(updateStatisticsParameters(input.getParameters(), statistics.getBasicStatistics()));
    return input;
}