public class BinUtils
extends java.lang.Object
| Constructor and Description |
|---|
BinUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateBinTemplate(java.io.DataOutputStream out, java.lang.String templateName, BinningConfig binConf, int srid, boolean geodetic)
Generates a bin template in JSON format.
|
static void |
generateBinTemplate(org.apache.hadoop.fs.Path templPath, java.lang.String templateName, org.apache.hadoop.conf.Configuration conf)
Generates a bin template in JSON format.
|
public static void generateBinTemplate(java.io.DataOutputStream out,
java.lang.String templateName,
BinningConfig binConf,
int srid,
boolean geodetic)
throws java.io.IOException
out - the output where the data will be written totemplateName - the name of the templatebinConf - the binning configurationsrid - the srid of the cell geometriesgeodetic - whethere the geometries are geodetic or nojava.io.IOException
public static void generateBinTemplate(org.apache.hadoop.fs.Path templPath,
java.lang.String templateName,
org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
templPath - the path where the template will be storedtemplateName - the name of the templateconf - the job configuration containing the binning configurationjava.lang.Exception