S
- public class RandomShapeGenerator<S extends Shape>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RandomShapeGenerator.DistributionType |
Constructor and Description |
---|
RandomShapeGenerator(Configuration job,
edu.umn.cs.spatialHadoop.mapred.RandomInputFormat.GeneratedSplit split)
Initialize from a FileSplit
|
RandomShapeGenerator(long size,
Rectangle mbr,
RandomShapeGenerator.DistributionType type,
int rectsize,
long seed) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Rectangle |
createKey() |
S |
createValue() |
static void |
generatePoint(Point p,
Rectangle mbr,
RandomShapeGenerator.DistributionType type,
java.util.Random rand) |
long |
getPos() |
float |
getProgress() |
boolean |
next(Rectangle key,
S value) |
static double |
nextGaussian(java.util.Random rand) |
void |
setShape(S shape) |
public RandomShapeGenerator(Configuration job, edu.umn.cs.spatialHadoop.mapred.RandomInputFormat.GeneratedSplit split) throws java.io.IOException
job
- split
- java.io.IOException
public RandomShapeGenerator(long size, Rectangle mbr, RandomShapeGenerator.DistributionType type, int rectsize, long seed)
public void setShape(S shape)
public boolean next(Rectangle key, S value) throws java.io.IOException
java.io.IOException
public Rectangle createKey()
public S createValue()
public long getPos() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public float getProgress() throws java.io.IOException
java.io.IOException
public static double nextGaussian(java.util.Random rand)
public static void generatePoint(Point p, Rectangle mbr, RandomShapeGenerator.DistributionType type, java.util.Random rand)