Search in sources :

Example 1 with Splitter

use of org.apache.hbase.thirdparty.com.google.common.base.Splitter in project hbase by apache.

the class ThriftServer method registerFilters.

public static void registerFilters(Configuration conf) {
    String[] filters = conf.getStrings(THRIFT_FILTERS);
    Splitter splitter = Splitter.on(':');
    if (filters != null) {
        for (String filterClass : filters) {
            List<String> filterPart = splitter.splitToList(filterClass);
            if (filterPart.size() != 2) {
                LOG.warn("Invalid filter specification " + filterClass + " - skipping");
            } else {
                ParseFilter.registerFilter(filterPart.get(0), filterPart.get(1));
            }
        }
    }
}
Also used : Splitter(org.apache.hbase.thirdparty.com.google.common.base.Splitter)

Aggregations

Splitter (org.apache.hbase.thirdparty.com.google.common.base.Splitter)1