org.teiid.query.processor.relational
Class JoinStrategy

java.lang.Object
  extended by org.teiid.query.processor.relational.JoinStrategy
Direct Known Subclasses:
MergeJoinStrategy, NestedTableJoinStrategy

public abstract class JoinStrategy
extends java.lang.Object


Field Summary
protected  JoinNode joinNode
           
protected  org.teiid.query.processor.relational.SourceState leftSource
           
protected  org.teiid.query.processor.relational.SourceState rightSource
           
 
Constructor Summary
JoinStrategy()
           
 
Method Summary
abstract  JoinStrategy clone()
           
 void close()
           
 void initialize(JoinNode joinNode)
           
protected  void loadLeft()
           
protected  void loadRight()
           
protected  void openLeft()
           
protected  void openRight()
           
protected  java.util.List outputTuple(java.util.List leftTuple, java.util.List rightTuple)
          Output a combined, projected tuple based on tuple parts from the left and right.
protected abstract  void process()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joinNode

protected JoinNode joinNode

leftSource

protected org.teiid.query.processor.relational.SourceState leftSource

rightSource

protected org.teiid.query.processor.relational.SourceState rightSource
Constructor Detail

JoinStrategy

public JoinStrategy()
Method Detail

close

public void close()

initialize

public void initialize(JoinNode joinNode)

loadLeft

protected void loadLeft()
                 throws TeiidComponentException,
                        TeiidProcessingException
Throws:
TeiidComponentException
TeiidProcessingException

loadRight

protected void loadRight()
                  throws TeiidComponentException,
                         TeiidProcessingException
Throws:
TeiidComponentException
TeiidProcessingException

outputTuple

protected java.util.List outputTuple(java.util.List leftTuple,
                                     java.util.List rightTuple)
Output a combined, projected tuple based on tuple parts from the left and right.

Parameters:
leftTuple - Left tuple part
rightTuple - Right tuple part
Throws:
TeiidComponentException

process

protected abstract void process()
                         throws TeiidComponentException,
                                TeiidProcessingException
Throws:
TeiidComponentException
TeiidProcessingException

clone

public abstract JoinStrategy clone()
Overrides:
clone in class java.lang.Object

openLeft

protected void openLeft()
                 throws TeiidComponentException,
                        TeiidProcessingException
Throws:
TeiidComponentException
TeiidProcessingException

openRight

protected void openRight()
                  throws TeiidComponentException,
                         TeiidProcessingException
Throws:
TeiidComponentException
TeiidProcessingException


Copyright © 2010. All Rights Reserved.