@Internal public class ExplicitShardedFile extends java.lang.Object implements ShardedFile
Constructor and Description |
---|
ExplicitShardedFile(java.util.Collection<java.lang.String> files)
Constructs an
ExplicitShardedFile for the given files. |
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 ExplicitShardedFile(java.util.Collection<java.lang.String> files) throws java.io.IOException
ExplicitShardedFile
for the given files.java.io.IOException
public java.util.List<java.lang.String> readFilesWithRetries(Sleeper sleeper, BackOff backOff) throws java.io.IOException, java.lang.InterruptedException
Sleeper
and BackOff
.
Because of eventual consistency, reads may discover no files or fewer files than the explicit list of files implies. In this case, the read is considered to have failed.
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
Because of eventual consistency, reads may discover no files or fewer files than the shard template implies. In this case, the read is considered to have failed.
java.io.IOException
java.lang.InterruptedException
public java.lang.String toString()
toString
in class java.lang.Object