| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.index.query.IndexJoinScan
public class IndexJoinScan
The scan class corresponding to the indexjoin relational algebra operator. The code is very similar to that of ProductScan, which makes sense because an index join is essentially the product of each LHS record with the matching RHS index records.
| Constructor Summary | |
|---|---|
IndexJoinScan(Scan s,
              Index idx,
              String joinfield,
              TableScan ts)
Creates an index join scan for the specified LHS scan and RHS index.  | 
|
| Method Summary | |
|---|---|
 void | 
beforeFirst()
Positions the scan before the first record.  | 
 void | 
close()
Closes the scan by closing its LHS scan and its RHS index.  | 
 int | 
getInt(String fldname)
Returns the integer value of the specified field.  | 
 String | 
getString(String fldname)
Returns the string value of the specified field.  | 
 Constant | 
getVal(String fldname)
Returns the Constant value of the specified field.  | 
 boolean | 
hasField(String fldname)
Returns true if the field is in the schema.  | 
 boolean | 
next()
Moves the scan to the next record.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public IndexJoinScan(Scan s,
                     Index idx,
                     String joinfield,
                     TableScan ts)
s - the LHS scanidx - the RHS indexjoinfield - the LHS field used for joining| Method Detail | 
|---|
public void beforeFirst()
beforeFirst in interface ScanScan.beforeFirst()public boolean next()
next in interface ScanScan.next()public void close()
close in interface ScanScan.close()public Constant getVal(String fldname)
getVal in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public int getInt(String fldname)
getInt in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public String getString(String fldname)
getString in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public boolean hasField(String fldname)
hasField in interface Scanfldname - the name of the field
Scan.hasField(java.lang.String)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||