public class HoodieROTablePathFilter extends Object implements org.apache.hadoop.conf.Configurable, org.apache.hadoop.fs.PathFilter, Serializable
We can set this filter, on a query engine's Hadoop Config and if it respects path filters, then you should be able to query both hoodie and non-hoodie tables as you would normally do.
hadoopConf.setClass("mapreduce.input.pathFilter.class", org.apache.hudi.hadoop .HoodieROTablePathFilter.class, org.apache.hadoop.fs.PathFilter.class)
| Constructor and Description |
|---|
HoodieROTablePathFilter() |
HoodieROTablePathFilter(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.hadoop.fs.Path path) |
org.apache.hadoop.conf.Configuration |
getConf() |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public HoodieROTablePathFilter()
public HoodieROTablePathFilter(org.apache.hadoop.conf.Configuration conf)
public boolean accept(org.apache.hadoop.fs.Path path)
accept in interface org.apache.hadoop.fs.PathFilterpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2022 The Apache Software Foundation. All rights reserved.