com.univocity.api.data
Interface Dataset

All Known Subinterfaces:
ModifiableDataset

public interface Dataset

A dataset exposes a number of records to be mapped into entities in uniVocity. It is essentially a matrix-like structure with rows and columns.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
DatasetFactory, DataIncrement, DatasetProducer

Method Summary
 String[] getFieldNames()
          Provides names of each field in the records of this dataset, in a sequence corresponding to their order.
 String[] getIdentifiers()
          Informs what field names in getFieldNames() should be used to identify each record.
 Iterable<Object[]> getRows()
          Returns the rows stored in this dataset.
 int size()
          Returns the number of rows in this dataset.
 

Method Detail

getFieldNames

String[] getFieldNames()
Provides names of each field in the records of this dataset, in a sequence corresponding to their order.

Returns:
the field names.

getIdentifiers

String[] getIdentifiers()
Informs what field names in getFieldNames() should be used to identify each record.

Returns:
the identifier names.

getRows

Iterable<Object[]> getRows()
Returns the rows stored in this dataset.

Returns:
the dataset rows

size

int size()
Returns the number of rows in this dataset.

Returns:
the number of rows in this dataset, or -1 if it cannot be determined.


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.