T
- Java class returned by filter methods, also filterablepublic interface Filterable<T extends Filterable<T>> extends CloseableIterable<DataFile>
CloseableIterable.ConcatCloseableIterable<E>
Modifier and Type | Method and Description |
---|---|
default T |
caseInsensitive()
Sets case insensitive binding and projection.
|
default T |
caseSensitive()
Sets case sensitive binding and projection.
|
T |
caseSensitive(boolean isCaseSensitive)
Sets case sensitivity.
|
T |
filterPartitions(Expression expr)
Adds a filter expression on partition data for matching files.
|
T |
filterRows(Expression expr)
Adds a filter expression on data rows for matching files.
|
T |
project(Schema fileProjection)
Set the projection from a schema.
|
T |
select(java.util.Collection<java.lang.String> columns)
Selects the columns of a file manifest to read.
|
default T |
select(java.lang.String... columns)
Selects the columns of a file manifest to read.
|
combine, concat, empty, filter, transform, withNoopClose, withNoopClose
default T select(java.lang.String... columns)
If 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.
columns
- String column names to load from the manifest fileT select(java.util.Collection<java.lang.String> columns)
If 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.
columns
- String column names to load from the manifest fileT project(Schema fileProjection)
fileProjection
- a projection of the DataFile schemaT filterPartitions(Expression expr)
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.
expr
- An expression for filtering this Filterable using partition dataT filterRows(Expression expr)
Expressions 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.
expr
- An expression for filtering this Filterable using row dataT caseSensitive(boolean isCaseSensitive)
isCaseSensitive
- true if expression binding and schema projection should be case sensitivedefault T caseSensitive()
default T caseInsensitive()