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 java.io.IOException
RecordSchema
that applies to the records in this RecordSetjava.io.IOException
Record next() throws java.io.IOException
Record
in the set or null
if there are no more recordsjava.io.IOException
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)