public static class FindFiles.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
FindFiles.Builder |
asOfTime(long timestampMillis)
Base results on files in the snapshot that was current as of a timestamp.
|
FindFiles.Builder |
caseInsensitive() |
FindFiles.Builder |
caseSensitive(boolean findCaseSensitive) |
CloseableIterable<DataFile> |
collect()
Returns all files in the table that match all of the filters.
|
FindFiles.Builder |
includeColumnStats() |
FindFiles.Builder |
inPartition(PartitionSpec spec,
StructLike partition)
Filter results to files in any one of the given partitions.
|
FindFiles.Builder |
inPartitions(PartitionSpec spec,
java.util.List<StructLike> partitions)
Filter results to files in any one of the given partitions.
|
FindFiles.Builder |
inPartitions(PartitionSpec spec,
StructLike... partitions)
Filter results to files in any one of the given partitions.
|
FindFiles.Builder |
inSnapshot(long findSnapshotId)
Base results on the given snapshot.
|
FindFiles.Builder |
withMetadataMatching(Expression expr)
Filter results using a metadata filter for the data in a
DataFile . |
FindFiles.Builder |
withRecordsMatching(Expression expr)
Filter results using a record filter.
|
public Builder(Table table)
public FindFiles.Builder caseInsensitive()
public FindFiles.Builder caseSensitive(boolean findCaseSensitive)
public FindFiles.Builder includeColumnStats()
public FindFiles.Builder inSnapshot(long findSnapshotId)
findSnapshotId
- a snapshot IDpublic FindFiles.Builder asOfTime(long timestampMillis)
timestampMillis
- a timestamp in millisecondspublic FindFiles.Builder withRecordsMatching(Expression expr)
collect()
.expr
- a record filterpublic FindFiles.Builder withMetadataMatching(Expression expr)
DataFile
.expr
- a filter for DataFile
metadata columnspublic FindFiles.Builder inPartition(PartitionSpec spec, StructLike partition)
spec
- a spec for the partitionspartition
- a StructLike that stores a partition tuplepublic FindFiles.Builder inPartitions(PartitionSpec spec, StructLike... partitions)
spec
- a spec for the partitionspartitions
- one or more StructLike that stores a partition tuplepublic FindFiles.Builder inPartitions(PartitionSpec spec, java.util.List<StructLike> partitions)
spec
- a spec for the partitionspartitions
- a list of StructLike that stores a partition tuplepublic CloseableIterable<DataFile> collect()