public class FilteredManifest extends java.lang.Object implements Filterable<FilteredManifest>
ALL_COLUMNS| Modifier and Type | Method and Description |
|---|---|
FilteredManifest |
filterPartitions(Expression expr)
Adds a filter expression on partition data for matching files.
|
FilteredManifest |
filterRows(Expression expr)
Adds a filter expression on data rows for matching files.
|
java.util.Iterator<DataFile> |
iterator() |
FilteredManifest |
select(java.util.Collection<java.lang.String> columns)
Selects the columns of a file manifest to read.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitselectpublic FilteredManifest select(java.util.Collection<java.lang.String> columns)
FilterableIf columns are set multiple times, the last set of columns will be read.
If the Filterable object has partition filters, they will be added to the returned partial.
For a list of column names, see the table format specification.
select in interface Filterable<FilteredManifest>columns - String column names to load from the manifest filepublic FilteredManifest filterPartitions(Expression expr)
FilterableIf the Filterable object already has partition filters, the new filter will be added as an additional requirement. The result filter expression will be the result of expr and any existing filters.
If the Filterable object has columns selected, they will be added to the returned partial.
filterPartitions in interface Filterable<FilteredManifest>expr - An expression for filtering this Filterable using partition datapublic FilteredManifest filterRows(Expression expr)
FilterableExpressions passed to this function will be converted to partition expressions before they are used to filter data files.
If the Filterable object already has partition filters, the new filter will be added as an additional requirement. The result filter expression will be the result of expr and any existing filters.
If the Filterable object has columns selected, they will be added to the returned partial.
filterRows in interface Filterable<FilteredManifest>expr - An expression for filtering this Filterable using row data