public class VariableTable extends UnaryRelation
| Modifier and Type | Class and Description |
|---|---|
protected class |
VariableTable.VariableTableCacheIterator |
protected class |
VariableTable.VariableTableStreamIterator |
UnaryRelation.UnaryRelationCacheIterator, UnaryRelation.UnaryRelationStreamIterator| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_name
The fragment's name
|
protected java.lang.String |
m_site
The fragment's site
|
m_relationm_streamingMode| Modifier | Constructor and Description |
|---|---|
protected |
VariableTable() |
|
VariableTable(java.lang.String name) |
|
VariableTable(java.lang.String name,
java.lang.String site) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(QueryVisitor v) |
RelationIterator |
cacheIterator()
Returns an iterator over tuples of the relation
|
boolean |
equals(java.lang.Object o) |
boolean |
equals(VariableTable t) |
java.lang.String |
getName()
Gives the table's name
|
Schema |
getSchema()
Returns the relation's schema
|
java.lang.String |
getSite()
Gets the fragment's site.
|
boolean |
isFragment()
Determines if the query tree is a fragment.
|
boolean |
isLeaf()
Determines if a given operator is at the leaf of the
query tree.
|
void |
setName(java.lang.String name)
Set the table's name.
|
void |
setSite(java.lang.String site)
Sets the fragment's site.
|
RelationStreamIterator |
streamIterator()
Returns an iterator over tuples of the relation
|
java.lang.String |
toString()
Pretty-prints a relation to a string
|
int |
tupleCount()
Returns the number of actual tuples present in the query.
|
setRelationcontains, getCardinality, getDegree, iterator, setStreamingModeprotected java.lang.String m_name
protected java.lang.String m_site
protected VariableTable()
public VariableTable(java.lang.String name)
public VariableTable(java.lang.String name,
java.lang.String site)
public void setSite(java.lang.String site)
site - getSite}public java.lang.String getSite()
public Schema getSchema()
Relationpublic void accept(QueryVisitor v) throws QueryVisitor.VisitorException
accept in class RelationQueryVisitor.VisitorExceptionpublic java.lang.String toString()
Relationpublic void setName(java.lang.String name)
name - The table's namepublic java.lang.String getName()
public int tupleCount()
RelationtupleCount in class UnaryRelationpublic final boolean isFragment()
RelationisFragment in class Relationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equals(VariableTable t)
public boolean isLeaf()
RelationTable and
VariableTable may be leaves.public RelationStreamIterator streamIterator()
RelationstreamIterator in class Relationpublic RelationIterator cacheIterator()
RelationcacheIterator in class RelationCopyright © Sylvain HallĂ©. All Rights Reserved.