public class SubTableSchema
extends java.lang.Object
Constructor and Description |
---|
SubTableSchema(SubTableSchema s)
create a shallow copy of subtable schema s
|
SubTableSchema(TableSchema supr)
create new SubTable object for belongstoSchema schema supr
|
SubTableSchema(TableSchema supr,
java.util.List<TableSchema> subs)
create subTableSchema declaration for belongstoSchema TableSchema supr
with subtable Schemas subs
|
SubTableSchema(TableSchema supr,
TableSchema... subs) |
Modifier and Type | Method and Description |
---|---|
void |
add(TableSchema... tschemas)
adding table schemas in bulk as subtables
|
void |
add(TableSchema sub)
adds SubTableSchema sub
|
boolean |
contains(java.lang.String s)
does this subtable schema include TableSchema with name s as subtable?
|
boolean |
contains(TableSchema s)
does this subtable schema include TableSchema s1 as subtable?
|
SubTableSchema |
copy(Schema newSchema)
copyFrom SubTableSchema by creating a new, pristine version that
literally replicates the data, but is specific to a new database schema.
|
boolean |
equals(SubTableSchema ts)
two SubTableSchema objects are equal iff they both reference the same
superTable, and this.subtables \subsetof ts.subtables, and vice versa
|
void |
equalsEH(SubTableSchema ts)
two SubTableSchema objects are equal iff they both reference the same
superTable, and this.subtables \subsetof ts.subtables, and vice versa if
unequal, Error is thrown with a reason
|
void |
flatten()
push columns of belongstoSchema into subs
|
java.lang.String |
getName()
return SubTableSchema of super Table
|
TableSchema |
getSubTableSchema(java.lang.String name)
return tableschema with given SubTableSchema from 'this'
|
java.util.List<TableSchema> |
getSubTableSchemas() |
TableSchema |
getSuper() |
void |
print()
print to Standard out
|
void |
print(java.io.PrintStream out)
print standard string declaration of SubTableSchema to PrintStream out
|
void |
remove(TableSchema sub) |
java.lang.String |
toString()
produce standard string representation of a SubTableSchema declaration
|
public SubTableSchema(TableSchema supr)
supr
- is Table object of belongstoSchema schemapublic SubTableSchema(TableSchema supr, TableSchema... subs)
supr
- super table schemasubs
- array of sub table schemaspublic SubTableSchema(TableSchema supr, java.util.List<TableSchema> subs)
supr
- TableSchema of belongstoSchema tablesubs
- list of TableSchemas of children tablespublic SubTableSchema(SubTableSchema s)
s
- -- subtable schema to copypublic java.util.List<TableSchema> getSubTableSchemas()
public java.lang.String getName()
public TableSchema getSuper()
public boolean contains(TableSchema s)
s
- TableSchema of interestpublic boolean contains(java.lang.String s)
s
- name of TableSchema of interestpublic void add(TableSchema sub)
sub
- -- SubTableSchema to addpublic void add(TableSchema... tschemas)
tschemas
- -- list of table schemas that are subtables of 'this'public void remove(TableSchema sub)
public TableSchema getSubTableSchema(java.lang.String name)
name
- -- SubTableSchema of table schemapublic SubTableSchema copy(Schema newSchema)
newSchema
- a Schema for cloning a subtable schema declpublic void flatten()
public boolean equals(SubTableSchema ts)
ts
- -- SubTableSchema to compare withpublic void equalsEH(SubTableSchema ts)
ts
- -- SubTableSchema to compare withpublic java.lang.String toString()
toString
in class java.lang.Object
public void print(java.io.PrintStream out)
out
- is output PrintStreampublic void print()