Interface IDataTableSchema
public interface IDataTableSchema
Describes the structure of a dataTable.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of columns a row contains.int
getColumnIndex
(String columnName) Returns the index of a columnName.getColumnSchema
(int columnIndex) Returns the schema of the column with the specified index.getColumnSchema
(String columnName) Returns the schema of the column with the specified name.List
<? extends IDataColumnSchema> Returns the schemas of all columns.boolean
Returns whether the column name is defined in the schema or not.
-
Method Details
-
hasColumn
Returns whether the column name is defined in the schema or not.- Parameters:
columnName
- the name of the column- Returns:
- true if and only if the column name is defined in the schema
-
getColumnCount
int getColumnCount()Returns the number of columns a row contains.- Returns:
- the number of columns a row contains
-
getColumnIndex
Returns the index of a columnName.- Parameters:
columnName
- the name of the column- Returns:
- the index of a columnName
-
getColumnSchema
Returns the schema of the column with the specified index.- Parameters:
columnIndex
- the index of the column- Returns:
- the schema of the column
-
getColumnSchema
Returns the schema of the column with the specified name.- Parameters:
columnName
- the name the column- Returns:
- the schema of the column
-
getColumnSchemas
List<? extends IDataColumnSchema> getColumnSchemas()Returns the schemas of all columns.- Returns:
- the schemas of all columns
-