public class QuadTreeConfiguration extends java.lang.Object implements SpatialPartitioningConfiguration
QuadTreeDistIndex
and QuadTreePartitioning
. Partitioning quality and speed can be affected by setting configuration properties.Constructor and Description |
---|
QuadTreeConfiguration()
Creates an empty instance
|
QuadTreeConfiguration(boolean useLocalIndex)
Creates a new instance and sets the useLocalIndex property with the given value
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends DistributedSpatialIndex<?>> |
getDistributedSpatialIndexClass()
Gets the type of
DistributedSpatialIndex this configuration is meant for. |
int |
getMaxParitionCount()
Gets the maximum number of partitions to be generated
|
int |
getMaxQuadTreeDepth()
Gets the maximum number of levels contained by the generated QuadTree
|
long |
getMaxRecordsPerPartition()
Gets the maximum number of RDD elements per partition
|
long |
getMinRecordsPerPartition()
Gets the minimum number of RDD elements per partition
|
long |
getRddSize()
Gets the size of the RDD to be partitioned/indexed.
|
long |
getRecordSize()
Gets the average record size
|
java.lang.Double |
getSamplingFraction()
Gets the sampling fraction used for sampling the RDD for calculating partitions.
|
java.lang.Class<? extends SpatialPartitioning<?>> |
getSpatialPartitioningClass()
Gets the type of
SpatialPartitioning algorithm this configuration is meant for. |
boolean |
isUseLocalIndex()
Gets whether the generated distributed index will contain local indexes or not.
|
void |
setMaxParitionCount(int maxParitionCount)
Sets the maximum number of partitions to be generated
|
void |
setMaxQuadTreeDepth(int maxQuadTreeDepth)
Sets the maximum number of levels contained by the generated QuadTree
|
void |
setMaxRecordsPerPartition(long maxElementsPerPartition)
Sets the maximum number of RDD elements per partition
|
void |
setMinRecordsPerPartition(long minElementsPerPartition)
Sets the minimum number of RDD elements per partition
|
void |
setRddSize(long rddSize)
Sets the size of the RDD to be partitioned/indexed.
|
void |
setRecordSize(long recordSize)
Sets the average record size
|
void |
setSamplingFraction(java.lang.Double samplingFraction)
Sets the sampling fraction used for sampling the RDD for calculating partitions.
|
void |
setUseLocalIndex(boolean useLocalIndex)
Sets whether the generated distributed index will contain local indexes or not.
|
public QuadTreeConfiguration()
public QuadTreeConfiguration(boolean useLocalIndex)
useLocalIndex
-public java.lang.Class<? extends DistributedSpatialIndex<?>> getDistributedSpatialIndexClass()
SpatialPartitioningConfiguration
DistributedSpatialIndex
this configuration is meant for.getDistributedSpatialIndexClass
in interface SpatialPartitioningConfiguration
DistributedSpatialIndex
public java.lang.Class<? extends SpatialPartitioning<?>> getSpatialPartitioningClass()
SpatialPartitioningConfiguration
SpatialPartitioning
algorithm this configuration is meant for.getSpatialPartitioningClass
in interface SpatialPartitioningConfiguration
SpatialPartitioning
public void setMaxRecordsPerPartition(long maxElementsPerPartition)
maxElementsPerPartition
-public long getMaxRecordsPerPartition()
public long getMinRecordsPerPartition()
public void setMinRecordsPerPartition(long minElementsPerPartition)
minElementsPerPartition
-public void setMaxQuadTreeDepth(int maxQuadTreeDepth)
maxQuadTreeDepth
-public int getMaxQuadTreeDepth()
public boolean isUseLocalIndex()
public void setUseLocalIndex(boolean useLocalIndex)
useLocalIndex
-public void setSamplingFraction(java.lang.Double samplingFraction)
samplingFraction
-public java.lang.Double getSamplingFraction()
public void setMaxParitionCount(int maxParitionCount)
maxParitionCount
-public int getMaxParitionCount()
public void setRddSize(long rddSize)
rddSize
-public long getRddSize()
public long getRecordSize()
public void setRecordSize(long recordSize)
recordSize
-Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.