Package | Description |
---|---|
PrologDB |
Modifier and Type | Method and Description |
---|---|
Column |
TableSchema.getColumn(int i)
returns the ith Column definition of the table; throws RuntimeError if i
is out of bounds.
|
Column |
TableSchema.getColumn(java.lang.String name) |
Column |
TableSchema.getColumnEH(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Column> |
Table.getColumns()
returns list of columns of the table; delegates to getColumns of
TableSchema
|
java.util.List<Column> |
TableSchema.getColumns()
returns list of columns of a TableSchema
|
java.util.List<Column> |
Tuple.getColumns()
Method delegates to TableSchema.getColumns()
|
Modifier and Type | Method and Description |
---|---|
TableSchema |
TableSchema.addColumn(Column c)
add a new column c to 'this' TableSchema; new column is appended to the
existing list of columns
Error is thrown if columns with duplicate names are detected
|
TableSchema |
TableSchema.addColumnFirst(Column c)
add column c as the first of 'this' schema
|
TableSchema |
TableSchema.addColumnsFirst(Column... columns)
place an array of columns before existing columns of 'this' schema
|
boolean |
Column.equals(Column otherColumn)
returns true if 'this' column equals the given otherColumn.
|
boolean |
Column.equalsType(Column otherColumn)
returns true if 'this' column and given column are both quoted useful for
batch copying of tuples from one table to another
|
Modifier and Type | Method and Description |
---|---|
Tuple |
Tuple.copy(Tuple from,
java.util.List<Column> columns)
copies selected column values from existing tuple
|
Table |
Table.project(java.util.List<Column> cols)
project Table to a list of cols
|
Constructor and Description |
---|
Column(Column c)
copy Column constructor
|
Column(Column c,
java.lang.String newName)
rename constructor
|
Constructor and Description |
---|
TableSchema(java.lang.String name,
java.util.List<Column> cols)
create table schema with given schemaName and given set of columns
|