net.sf.farrago.query
Class FennelRelParamId

java.lang.Object
  extended by net.sf.farrago.query.FennelRelParamId

public class FennelRelParamId
extends Object

FennelRelParamId is an opaque type representing the reservation of a FennelDynamicParamId during query planning. See the design docs for why this logical ID is needed in addition to FennelDynamicParamId, which is the physical ID. A 64-bit integer is used since a large number of these may be generated and then discarded during query planning. (I hate to think about the implications of a planner that would actually exhaust 32 bits, but still, one just can't be too safe.)

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/query/FennelRelParamId.java#8 $
Author:
John V. Sichi

Field Summary
private  long id
           
 
Constructor Summary
FennelRelParamId(long id)
           
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
           
 long longValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private final long id
Constructor Detail

FennelRelParamId

public FennelRelParamId(long id)
Method Detail

longValue

public long longValue()
Returns:
the underlying long value

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object