public interface RecordSet
Modifier and Type | Method and Description |
---|---|
RecordSchema |
getSchema() |
default RecordSet |
limit(int maxRecords)
Returns a new Record Set that will return no more than
maxRecords records from this
RecordSet. |
Record |
next() |
static RecordSet |
of(RecordSchema schema,
Record... records) |
RecordSchema getSchema() throws IOException
RecordSchema
that applies to the records in this RecordSetIOException
Record next() throws IOException
Record
in the set or null
if there are no more recordsIOException
default RecordSet limit(int maxRecords)
maxRecords
records from this
RecordSet. Any Records that are pulled from this newly created RecordSet will also advance
the cursor in this Record Set and vice versa.maxRecords
- the maximum number of records to return from the new RecordSetstatic RecordSet of(RecordSchema schema, Record... records)
Copyright © 2021 Apache NiFi Project. All rights reserved.