KEY - The key type.VALUE - The value type.public abstract class SplitReader<KEY,VALUE> extends Object
Split.| Constructor and Description |
|---|
SplitReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close the record reader.
|
abstract KEY |
getCurrentKey()
Get the current key.
|
abstract VALUE |
getCurrentValue()
Get the current value.
|
float |
getProgress()
The current progress of the record reader through its data.
|
abstract void |
initialize(Split split)
Called once at initialization.
|
abstract boolean |
nextKeyValue()
Read the next key, value pair.
|
public abstract void initialize(Split split) throws InterruptedException
split - The split that defines the range of records to read.InterruptedExceptionpublic abstract boolean nextKeyValue()
throws InterruptedException
InterruptedExceptionpublic abstract KEY getCurrentKey() throws InterruptedException
InterruptedExceptionpublic abstract VALUE getCurrentValue() throws InterruptedException
InterruptedExceptionpublic float getProgress()
throws InterruptedException
InterruptedExceptionpublic abstract void close()
Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.