public class ChainFilterFactory extends Object implements FilterFactory
Filter
that is implemented as a chain of other filters.
The chain of filters are created as a result of
getInstance(org.apache.hadoop.hive.conf.HiveConf)
method call. The resulting object filters out all users that don't pass all
chained filters. The filters will be applied in the order they are mentioned in the factory
constructor.Constructor and Description |
---|
ChainFilterFactory(FilterFactory... factories)
Constructs a factory for a chain of filters.
|
Modifier and Type | Method and Description |
---|---|
Filter |
getInstance(HiveConf conf)
Returns an instance of the corresponding filter.
|
public ChainFilterFactory(FilterFactory... factories)
factories
- The array of factories that will be used to construct a chain of filters.public Filter getInstance(HiveConf conf)
getInstance
in interface FilterFactory
conf
- Hive properties used to configure the filter.null
if this filter doesn't support provided set of propertiesCopyright © 2016 The Apache Software Foundation. All rights reserved.