public class BinningConfig
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
BinningConfig.BinShape
The shape of the cells to be generated 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CONF_AGGR_FIELDS
Job configuration: a comma separated list of numeric field values to be aggregated. 
 | 
static java.lang.String | 
CONF_CELL_HEIGHT
Job configuration: The height of the cells as a double value 
 | 
static java.lang.String | 
CONF_CELL_SHAPE
Job configuration: the shape of the cells. 
 | 
static java.lang.String | 
CONF_CELL_WIDTH
Job configuration: The width of the cells as a double value 
 | 
static java.lang.String | 
CONF_GRID_COLS
Job configuration: The number of columns in the grid as an integer number. 
 | 
static java.lang.String | 
CONF_GRID_MAX_X
Job configuration: The maximum x ordinate value of the grid as a double value 
 | 
static java.lang.String | 
CONF_GRID_MAX_Y
Job configuration: The maximum y ordinate value of the grid as a double value 
 | 
static java.lang.String | 
CONF_GRID_MIN_X
Job configuration: The minimum x ordinate value of the grid as a double value 
 | 
static java.lang.String | 
CONF_GRID_MIN_Y
Job configuration: The minimum y ordinate value of the grid as a double value 
 | 
static java.lang.String | 
CONF_GRID_ROWS
Job configuration: The number of rows in the grid as an integer number. 
 | 
| Constructor and Description | 
|---|
BinningConfig()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String[] | 
getAggrFields()
Gets the name of the fields to be aggregated 
 | 
double | 
getCellHeight()
Gets the height of the cells 
 | 
double | 
getCellWidth()
Gets the width of the cells 
 | 
int | 
getGridColumns()
Gets the number of columns in the grid 
 | 
double[] | 
getGridMbr()
Gets the minimum bounding box of the grid 
 | 
int | 
getGridRows()
Gets the number of rows in the grid 
 | 
BinningConfig.BinShape | 
getShape()
Gets the shape of the cells 
 | 
SpatialConfig | 
getSpatialConfig()
Gets the current spatial configuration 
 | 
void | 
load(Configuration conf)
Loads a binning configuration from the job configuration 
 | 
void | 
setAggrFields(java.lang.String[] aggrFields)
Sets the name of the fields to be aggregated 
 | 
void | 
setCellHeight(double cellHeight)
Sets the height of the cells 
 | 
void | 
setCellWidth(double cellWidth)
Sets the width of the cells 
 | 
void | 
setGridColumns(int gridColumns)
Sets the number of columns in the grid 
 | 
void | 
setGridMbr(double[] gridMbr)
Sets the minimum bounding box of the grid 
 | 
void | 
setGridRows(int gridRows)
Sets the number of rows in the grid 
 | 
void | 
setShape(BinningConfig.BinShape shape)
Sets the shape of the cells 
 | 
void | 
setSpatialConfig(SpatialConfig spatialConfig)
Sets the current spatial configuration 
 | 
void | 
store(Configuration conf)
Stores the binning configuration into the job configuration 
 | 
java.lang.String | 
toString()  | 
public static final java.lang.String CONF_AGGR_FIELDS
public static final java.lang.String CONF_CELL_HEIGHT
public static final java.lang.String CONF_CELL_SHAPE
BinningConfig.BinShapepublic static final java.lang.String CONF_CELL_WIDTH
public static final java.lang.String CONF_GRID_COLS
public static final java.lang.String CONF_GRID_MAX_X
public static final java.lang.String CONF_GRID_MAX_Y
public static final java.lang.String CONF_GRID_MIN_X
public static final java.lang.String CONF_GRID_MIN_Y
public static final java.lang.String CONF_GRID_ROWS
public java.lang.String[] getAggrFields()
public double getCellHeight()
public double getCellWidth()
public int getGridColumns()
public double[] getGridMbr()
public int getGridRows()
public BinningConfig.BinShape getShape()
public SpatialConfig getSpatialConfig()
public void load(Configuration conf)
conf - the job configurationpublic void setAggrFields(java.lang.String[] aggrFields)
aggrFields - an array of field namespublic void setCellHeight(double cellHeight)
cellHeight - the cell heightpublic void setCellWidth(double cellWidth)
cellWidth - the cell widthpublic void setGridColumns(int gridColumns)
gridColumns - the number of columnspublic void setGridMbr(double[] gridMbr)
gridMbr - a double array with the values minX,minY,maxX,maxYpublic void setGridRows(int gridRows)
gridRows - the number of rowspublic void setShape(BinningConfig.BinShape shape)
shape - the cell shapepublic void setSpatialConfig(SpatialConfig spatialConfig)
spatialConfig - a spatial configurationpublic void store(Configuration conf)
conf - the job configurationpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.