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.InterruptedException
public abstract boolean nextKeyValue() throws InterruptedException
InterruptedException
public abstract KEY getCurrentKey() throws InterruptedException
InterruptedException
public abstract VALUE getCurrentValue() throws InterruptedException
InterruptedException
public float getProgress() throws InterruptedException
InterruptedException
public abstract void close()
Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.