|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--saffron.rel.TypeFactoryImpl.TypeImpl
Abstract implementation for Type. Useful if the type contains
a set of fields.
Identity is based upon the digest field, which each derived
class should set during construction.
| Field Summary | |
protected String |
digest
|
protected Field[] |
fields
|
| Constructor Summary | |
protected |
TypeFactoryImpl.TypeImpl(Field[] fields)
|
| Method Summary | |
protected abstract String |
computeDigest()
|
boolean |
equals(Object obj)
|
TypeFactory |
getFactory()
|
Field |
getField(String fieldName)
|
int |
getFieldCount()
Returns the number of columns. |
int |
getFieldOrdinal(String fieldName)
|
Field[] |
getFields()
Returns the columns. |
Type[] |
getJoinTypes()
Returns the component types of a join type. |
int |
hashCode()
|
boolean |
isJoin()
Whether the type represents a cartesian product of regular types. |
boolean |
isProject()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final Field[] fields
protected String digest
| Constructor Detail |
protected TypeFactoryImpl.TypeImpl(Field[] fields)
| Method Detail |
public String toString()
toString in class Objectprotected abstract String computeDigest()
public int getFieldCount()
Type
getFieldCount in interface Typepublic Field[] getFields()
Type
getFields in interface Typepublic int getFieldOrdinal(String fieldName)
getFieldOrdinal in interface Typepublic Field getField(String fieldName)
getField in interface Typepublic TypeFactory getFactory()
getFactory in interface Typepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean isJoin()
Type
isJoin in interface Typepublic Type[] getJoinTypes()
Type
getJoinTypes in interface Typepublic boolean isProject()
isProject in interface Type
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||