public interface RecordReader extends Closeable
A RowRecordReader is responsible for parsing data and returning a record at a time in order to allow the caller to iterate over the records individually.
PLEASE NOTE: This interface is still considered 'unstable' and may change in a non-backward-compatible manner between minor or incremental releases of NiFi.
Modifier and Type | Method and Description |
---|---|
default RecordSet |
createRecordSet() |
RecordSchema |
getSchema() |
Record |
nextRecord()
Returns the next record in the stream or
null if no more records are available. |
Record nextRecord() throws IOException, MalformedRecordException
null
if no more records are available.null
if no more records are available.IOException
- if unable to read from the underlying dataMalformedRecordException
- if an unrecoverable failure occurs when trying to parse a recordRecordSchema getSchema() throws MalformedRecordException
MalformedRecordException
- if an unrecoverable failure occurs when trying to parse the underlying datadefault RecordSet createRecordSet()
Copyright © 2017 Apache NiFi Project. All rights reserved.