public class ColumnRangePartitioner extends Object implements Partitioner
| Constructor and Description |
|---|
ColumnRangePartitioner() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ExecutionContext> |
partition(int gridSize)
Partition a database table assuming that the data in the column specified
are uniformly distributed.
|
void |
setColumn(String column)
The name of the column to partition.
|
void |
setDataSource(DataSource dataSource)
The data source for connecting to the database.
|
void |
setTable(String table)
The name of the SQL table the data are in.
|
public void setTable(String table)
table - the name of the tablepublic void setColumn(String column)
column - the column name.public void setDataSource(DataSource dataSource)
dataSource - a DataSourcepublic Map<String,ExecutionContext> partition(int gridSize)
minValue and maxValue specifying the range of
values to consider in each partition.partition in interface PartitionergridSize - the size of the map to returnPartitioner.partition(int)Copyright © 2014 Pivotal. All rights reserved.