|
||||||||||
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 Object
protected abstract String computeDigest()
public int getFieldCount()
Type
getFieldCount
in interface Type
public Field[] getFields()
Type
getFields
in interface Type
public int getFieldOrdinal(String fieldName)
getFieldOrdinal
in interface Type
public Field getField(String fieldName)
getField
in interface Type
public TypeFactory getFactory()
getFactory
in interface Type
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean isJoin()
Type
isJoin
in interface Type
public Type[] getJoinTypes()
Type
getJoinTypes
in interface Type
public boolean isProject()
isProject
in interface Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |