saffron.rel
Interface Type

All Known Implementing Classes:
TypeFactoryImpl.TypeImpl

public interface Type

The type of a scalar expression or a row returned from a relational expression.

Since:
May 29, 2003
Version:
$Id: //open/saffron/src/main/saffron/rel/Type.java#1 $
Author:
jhyde

Method Summary
 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.
 boolean isJoin()
          Whether the type represents a cartesian product of regular types.
 boolean isProject()
           
 

Method Detail

getFieldCount

public int getFieldCount()
Returns the number of columns.


getFields

public Field[] getFields()
Returns the columns.

Post-condition:
return != null

getFieldOrdinal

public int getFieldOrdinal(String fieldName)

getField

public Field getField(String fieldName)

isJoin

public boolean isJoin()
Whether the type represents a cartesian product of regular types.


getJoinTypes

public Type[] getJoinTypes()
Returns the component types of a join type.

Pre-condition:
isJoin()

isProject

public boolean isProject()

getFactory

public TypeFactory getFactory()

SourceForge.net_Logo