public class SpatialRecordReader3<V extends Shape> extends
Modifier and Type | Class and Description |
---|---|
static class |
SpatialRecordReader3.ShapeIterator<V extends Shape>
An iterator that iterates over all shapes in the input file
|
Modifier and Type | Field and Description |
---|---|
protected Partition |
cellMBR
The boundary of the partition currently being read
|
Constructor and Description |
---|
SpatialRecordReader3() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Partition |
getCurrentKey() |
java.lang.Iterable<V> |
getCurrentValue() |
long |
getPos() |
float |
getProgress() |
void |
initialize(InputSplit split,
Configuration conf) |
void |
initialize(InputSplit split,
TaskAttemptContext context) |
protected boolean |
isMatched(Shape shape) |
boolean |
nextKeyValue() |
protected boolean |
nextLine(Text value)
Reads the next line from input and return true if a line was read.
|
protected boolean |
nextShape(V s)
Reads next shape from input and returns true.
|
protected Partition cellMBR
public void initialize(InputSplit split, TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void initialize(InputSplit split, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public long getPos() throws java.io.IOException
java.io.IOException
protected boolean nextLine(Text value) throws java.io.IOException
value
- java.io.IOException
protected boolean isMatched(Shape shape)
protected boolean nextShape(V s) throws java.io.IOException
nextLine(Text)
then parses the returned
line by calling TextSerializable.fromText(Text)
on that line. If no stock
shape is set, a NullPointerException
is thrown.s
- java.io.IOException
public boolean nextKeyValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public Partition getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.lang.Iterable<V> getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public float getProgress() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void close() throws java.io.IOException
java.io.IOException