Package io.trino.plugin.hive.fs
Class DirectoryListingFilter
java.lang.Object
io.trino.plugin.hive.fs.DirectoryListingFilter
- All Implemented Interfaces:
RemoteIterator<TrinoFileStatus>
Filters down the full listing of a path prefix to just the files directly in a given directory.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryListingFilter(Location prefix, RemoteIterator<TrinoFileStatus> delegateIterator, boolean failOnUnexpectedFiles) -
Method Summary
-
Constructor Details
-
DirectoryListingFilter
public DirectoryListingFilter(Location prefix, RemoteIterator<TrinoFileStatus> delegateIterator, boolean failOnUnexpectedFiles) throws IOException - Throws:
IOException
-
-
Method Details
-
hasNext
- Specified by:
hasNextin interfaceRemoteIterator<TrinoFileStatus>- Throws:
IOException
-
next
- Specified by:
nextin interfaceRemoteIterator<TrinoFileStatus>- Throws:
IOException
-