@Internal public class FilePatternMatchingShardedFile extends java.lang.Object implements ShardedFile
Note that file matching should only occur once the file system is in a stable state and guaranteed to provide a consistent result during file pattern matching.
Constructor and Description |
---|
FilePatternMatchingShardedFile(java.lang.String filePattern)
Constructs an
FilePatternMatchingShardedFile for the given file pattern. |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
readFilesWithRetries()
Discovers all shards of this file.
|
java.util.List<java.lang.String> |
readFilesWithRetries(Sleeper sleeper,
BackOff backOff)
|
java.lang.String |
toString() |
public FilePatternMatchingShardedFile(java.lang.String filePattern)
FilePatternMatchingShardedFile
for the given file pattern. Note that the
file pattern must match at least one file.
Note that file matching should only occur once the file system is in a stable state and guaranteed to provide a consistent result during file pattern matching.
public java.util.List<java.lang.String> readFilesWithRetries(Sleeper sleeper, BackOff backOff) throws java.io.IOException, java.lang.InterruptedException
readFilesWithRetries
in interface ShardedFile
java.io.IOException
java.lang.InterruptedException
public java.util.List<java.lang.String> readFilesWithRetries() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.lang.String toString()
toString
in class java.lang.Object