public class HilbertValueBasedPartitioner
extends java.lang.Object
Constructor and Description |
---|
HilbertValueBasedPartitioner(Path hvPointsPath, Path[] sourceDataPaths, long pointCount, double pointDistanceSum, long partitionCount)
Creates a new instance
|
HilbertValueBasedPartitioner(Path hvPointsPath, java.lang.String[] sourceLocations, long pointCount, double pointDistanceSum, long partitionCount)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
generatePartitioningResult(Path partResultPath, SpatialConfig spatialConfig, Configuration conf)
Creates partitions and generates a partitioning result file.
|
public HilbertValueBasedPartitioner(Path hvPointsPath, Path[] sourceDataPaths, long pointCount, double pointDistanceSum, long partitionCount)
hvPointsPath
- the path to a sequence file containing hilbert value-point pairssourceDataPaths
- the paths to the data which the partitioning file will be generated forpointCount
- the number of points (entries) in the file located at hvPoinsPathpointDistanceSum
- the sum of the distance of each consecutive points in the file located at hvPoinsPathpartitionCount
- the suggested number of partitionspublic HilbertValueBasedPartitioner(Path hvPointsPath, java.lang.String[] sourceLocations, long pointCount, double pointDistanceSum, long partitionCount)
hvPointsPath
- the path to a sequence file containing hilbert value-point pairssourceLocations
- the locations of the data which the partitioning file will be generated forpointCount
- the number of points (entries) in the file located at hvPoinsPathpointDistanceSum
- the sum of the distance of each consecutive points in the file located at hvPoinsPathpartitionCount
- the suggested number of partitionspublic void generatePartitioningResult(Path partResultPath, SpatialConfig spatialConfig, Configuration conf) throws java.io.IOException
partResultPath
- the path where the partitioning result file will be savedspatialConfig
- the spatial configuration that defines the paritioning space and the geometries of the generated partitionsconf
- a job configurationjava.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.