@InterfaceStability.Stable public interface Table extends Comparable<Table>, Serializable, NamedStructure
Modifier and Type | Method and Description |
---|---|
List<Column> |
getBooleanColumns()
Gets all of this table's columns that are of boolean type.
|
Column |
getColumn(int index)
Gets a column by index.
|
Column |
getColumnByName(String columnName)
Convenience method for retrieving a column by it's name.
|
int |
getColumnCount()
Gets the number of columns in this table.
|
List<String> |
getColumnNames()
Gets the names of this table's columns.
|
List<Column> |
getColumns()
Gets the columns of this table.
|
List<Column> |
getColumnsOfSuperType(SuperColumnType superColumnType)
Gets the columns of this table that conforms to a specified
SuperColumnType . |
List<Column> |
getColumnsOfType(ColumnType columnType)
Gets the columns of this table that conforms to a specified
ColumnType . |
Collection<Relationship> |
getForeignKeyRelationships() |
List<Column> |
getForeignKeys()
Gets the columns of this table that are known to be foreign keys (ie.
|
List<Column> |
getIndexedColumns()
Gets all of this table's columns that are indexed.
|
List<Column> |
getLiteralColumns()
Gets all of this table's columns that are of literal (String/text) type.
|
String |
getName()
Gets the name of this Table
|
List<Column> |
getNumberColumns()
Gets all of this table's columns that are of number type.
|
Collection<Relationship> |
getPrimaryKeyRelationships() |
List<Column> |
getPrimaryKeys()
Gets the columns of this table that are known to be primary keys.
|
int |
getRelationshipCount()
Gets a count of relationships to and from this table.
|
Collection<Relationship> |
getRelationships()
Gets all relationships for this table.
|
Collection<Relationship> |
getRelationships(Table otherTable)
Gets relationships between this table and another table.
|
String |
getRemarks()
Gets remarks/comments to this table.
|
Schema |
getSchema()
Gets the schema that this table resides in.
|
List<Column> |
getTimeBasedColumns()
Gets all of this table's columns that are time and/or date based.
|
TableType |
getType()
Gets the table type of this table.
|
compareTo
getQualifiedLabel, getQuote, getQuotedName
String getName()
getName
in interface HasName
getName
in interface NamedStructure
int getColumnCount()
List<Column> getColumns()
Column getColumnByName(String columnName)
columnName
- the name of the column to retrieveColumn getColumn(int index) throws IndexOutOfBoundsException
getColumnCount()
to get the
(0-based) index range.index
- the index of the columnIndexOutOfBoundsException
- if the index is out of bounds (index >= column count)Schema getSchema()
TableType getType()
Collection<Relationship> getRelationships()
Collection<Relationship> getRelationships(Table otherTable)
otherTable
- another table for which to find relationships to and from.int getRelationshipCount()
String getRemarks()
List<Column> getNumberColumns()
ColumnType
List<Column> getLiteralColumns()
ColumnType
List<Column> getTimeBasedColumns()
ColumnType
List<Column> getBooleanColumns()
ColumnType
List<Column> getIndexedColumns()
Collection<Relationship> getForeignKeyRelationships()
Collection<Relationship> getPrimaryKeyRelationships()
List<Column> getForeignKeys()
List<Column> getPrimaryKeys()
Column.isPrimaryKey()
.List<String> getColumnNames()
List<Column> getColumnsOfType(ColumnType columnType)
ColumnType
.columnType
- the column type to search for.List<Column> getColumnsOfSuperType(SuperColumnType superColumnType)
SuperColumnType
.superColumnType
- the super type of the columnCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.