Interface ReadableTabularDataSource
- All Known Implementing Classes:
CSVFileStoreConnector
,PostgresTabularDataSourceConnector
,ReferenceDataSetConnectorBase
,ValidValueDataSetConnector
,ValidValueSetListConnector
public interface ReadableTabularDataSource
ReadableTabularDataSource defines the specific connector api for reading
simple tabular data. Each row represents a record
that is divided into columns. Each row has the same list of columns and so the data source is
effectively a table of data.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of column descriptions associated with this data source.int
getColumnNumber
(String columnName) Locate the named column.long
Return the number of records in the data source.readRecord
(long rowNumber) Return the requested data record.
-
Method Details
-
getRecordCount
Return the number of records in the data source.- Returns:
- count
- Throws:
ConnectorCheckedException
- there is a problem accessing the data
-
getColumnDescriptions
Return the list of column descriptions associated with this data source. The information should be sufficient to define the schema in a target data store.- Returns:
- a list of column descriptions or null if not available.
- Throws:
ConnectorCheckedException
- there is a problem accessing the data
-
getColumnNumber
Locate the named column. A negative number means the column is not present.- Parameters:
columnName
- name of the column to return- Returns:
- column
- Throws:
ConnectorCheckedException
- problem extracting the column descriptions
-
readRecord
Return the requested data record. The first record is record 0.- Parameters:
rowNumber
- long- Returns:
- list of values (as strings) where each string is the value from a column. The order is the same as the columns
- Throws:
ConnectorCheckedException
- there is a problem accessing the data.
-