public class KeyValueTable.KeyValueScanner extends SplitReader<byte[],byte[]>
Constructor and Description |
---|
KeyValueScanner(SplitReader<byte[],Row> reader) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the record reader.
|
byte[] |
getCurrentKey()
Get the current key.
|
byte[] |
getCurrentValue()
Get the current value.
|
void |
initialize(Split split)
Called once at initialization.
|
boolean |
nextKeyValue()
Read the next key, value pair.
|
getProgress
public KeyValueScanner(SplitReader<byte[],Row> reader)
public void initialize(Split split) throws InterruptedException
SplitReader
initialize
in class SplitReader<byte[],byte[]>
split
- The split that defines the range of records to read.InterruptedException
public boolean nextKeyValue() throws InterruptedException
SplitReader
nextKeyValue
in class SplitReader<byte[],byte[]>
InterruptedException
public byte[] getCurrentKey() throws InterruptedException
SplitReader
getCurrentKey
in class SplitReader<byte[],byte[]>
InterruptedException
public byte[] getCurrentValue() throws InterruptedException
SplitReader
getCurrentValue
in class SplitReader<byte[],byte[]>
InterruptedException
public void close()
SplitReader
close
in class SplitReader<byte[],byte[]>
Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.