public final class FilesByShard extends Object implements Serializable
Constructor and Description |
---|
FilesByShard(int shardCount,
String bucket) |
Modifier and Type | Method and Description |
---|---|
void |
addFilesToShard(int shardNumber,
Iterable<String> newFiles) |
void |
addFileToShard(int shardNumber,
String newFile) |
boolean |
equals(Object obj) |
String |
getBucket() |
GoogleCloudStorageFileSet |
getFilesForShard(int shardNumber) |
int |
getShardCount() |
int |
hashCode() |
void |
splitShards(int targetNumShards)
Splits the provided input if needed to ensure there are approximately
targetNumShards
shards. |
String |
toString() |
public FilesByShard(int shardCount, String bucket)
public GoogleCloudStorageFileSet getFilesForShard(int shardNumber)
public void addFileToShard(int shardNumber, String newFile)
public int getShardCount()
public String getBucket()
public void splitShards(int targetNumShards)
targetNumShards
shards. (Note that it will not combine files from different input shards into a single output
shard)Copyright © 2015 Google. All rights reserved.