Example usage for org.apache.hadoop.conf Configuration getPropsWithPrefix

List of usage examples for org.apache.hadoop.conf Configuration getPropsWithPrefix

Introduction

In this page you can find the example usage for org.apache.hadoop.conf Configuration getPropsWithPrefix.

Prototype

public Map<String, String> getPropsWithPrefix(String confPrefix) 

Source Link

Document

Constructs a mapping of configuration and includes all properties that start with the specified configuration prefix.

Usage

From source file:org.apache.falcon.security.XFrameOptionsFilter.java

License:Apache License

/**
 * Constructs a mapping of configuration properties to be used for filter
 * initialization.  The mapping includes all properties that start with the
 * specified configuration prefix.  Property names in the mapping are trimmed
 * to remove the configuration prefix./*w  w w . ja v  a  2s .com*/
 *
 * @param conf configuration to read
 * @param confPrefix configuration prefix
 * @return mapping of configuration properties to be used for filter
 *     initialization
 */
public static Map<String, String> getFilterParams(Configuration conf, String confPrefix) {
    return conf.getPropsWithPrefix(confPrefix);
}