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.IOExceptionjava.lang.InterruptedExceptionpublic void initialize(InputSplit split,
Configuration conf)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic long getPos()
throws java.io.IOException
java.io.IOExceptionprotected boolean nextLine(Text value)
throws java.io.IOException
value - java.io.IOExceptionprotected 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.IOExceptionpublic boolean nextKeyValue()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic Partition getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic java.lang.Iterable<V> getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic float getProgress()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void close()
throws java.io.IOException
java.io.IOException