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 |
isLocallyIndexed() |
boolean |
isUseLocalIndex()
Gets whether the generated distributed index will contain local indexes or not.
|
void |
setLocallyIndexed(boolean locallyIndexed) |
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()
SpatialPartitioningConfigurationDistributedSpatialIndex this configuration is meant for.getDistributedSpatialIndexClass in interface SpatialPartitioningConfigurationDistributedSpatialIndexpublic int getMaxParitionCount()
public int getMaxQuadTreeDepth()
public long getMaxRecordsPerPartition()
public long getMinRecordsPerPartition()
public long getRddSize()
public long getRecordSize()
public java.lang.Double getSamplingFraction()
public java.lang.Class<? extends SpatialPartitioning<?>> getSpatialPartitioningClass()
SpatialPartitioningConfigurationSpatialPartitioning algorithm this configuration is meant for.getSpatialPartitioningClass in interface SpatialPartitioningConfigurationSpatialPartitioningpublic boolean isLocallyIndexed()
isLocallyIndexed in interface SpatialPartitioningConfigurationpublic boolean isUseLocalIndex()
public void setLocallyIndexed(boolean locallyIndexed)
public void setMaxParitionCount(int maxParitionCount)
maxParitionCount -public void setMaxQuadTreeDepth(int maxQuadTreeDepth)
maxQuadTreeDepth -public void setMaxRecordsPerPartition(long maxElementsPerPartition)
maxElementsPerPartition -public void setMinRecordsPerPartition(long minElementsPerPartition)
minElementsPerPartition -public void setRddSize(long rddSize)
rddSize -public void setRecordSize(long recordSize)
recordSize -public void setSamplingFraction(java.lang.Double samplingFraction)
samplingFraction -public void setUseLocalIndex(boolean useLocalIndex)
useLocalIndex -Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.