Package org.ojalgo.netio
Class ShardedFile
java.lang.Object
org.ojalgo.netio.ShardedFile
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Explicitly delete all files/shards as well as the parent directory (make sure there is nothing else in that directory)boolean
files()
int
hashCode()
static ShardedFile
static ShardedFile
shard
(int index) File[]
shards()
private static File[]
splitToShards
(File file, int numberOfShards) toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
numberOfShards
public final int numberOfShards -
single
A valid single file used as a template when creating the shards. Can also be used for meta data or merged/aggregated data from the shards. -
myShards
-
-
Constructor Details
-
ShardedFile
ShardedFile(File template, int nbShards)
-
-
Method Details
-
of
-
of
-
splitToShards
-
delete
public void delete()Explicitly delete all files/shards as well as the parent directory (make sure there is nothing else in that directory) -
directory
- Returns:
- A parent directory to all the shards
-
equals
-
files
-
filesWithShardIndex
- Returns:
- Same as
files()
but paired with the shard index.
-
hashCode
public int hashCode() -
shard
-
shards
-
toString
-