public static final class DistributedDataSetPartition.Builder extends Object implements Builder<DistributedDataSetPartition>
DistributedDataSetPartitions are build using this Builder.| Modifier and Type | Method and Description |
|---|---|
DistributedDataSetPartition |
build()
Builds the
DistributedDataSetPartition. |
DistributedDataSetPartition.Builder |
setDesiredSplits(int desiredSplits)
Sets the desired number of splits for this partition.
|
DistributedDataSetPartition.Builder |
setLocation(String location)
Sets the location where we want the data in this partition to be loaded
into.
|
DistributedDataSetPartition.Builder |
setPath(String path)
Sets the path of the distributed data set partition.
|
public DistributedDataSetPartition.Builder setPath(String path)
path - the path to setpublic DistributedDataSetPartition.Builder setLocation(String location)
location - the location to setpublic DistributedDataSetPartition.Builder setDesiredSplits(int desiredSplits)
desiredSplits - the number of desired splitspublic DistributedDataSetPartition build()
DistributedDataSetPartition.build in interface Builder<DistributedDataSetPartition>Copyright © 2017 The Apache Software Foundation. All rights reserved.