|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.cursor.AbstractCursor<S>
com.amazon.carbonado.cursor.IntersectionCursor<S>
public class IntersectionCursor<S>
Wraps two Cursors and performs a set intersection operation. In boolean logic, this is an and operation.
Both cursors must return results in the same order. Ordering is preserved by the intersection.
UnionCursor,
DifferenceCursor,
SymmetricDifferenceCursor| Constructor Summary | |
|---|---|
IntersectionCursor(Cursor<S> left,
Cursor<S> right,
Comparator<S> order)
|
|
| Method Summary | |
|---|---|
void |
close()
Call close to release any resources being held by this cursor. |
boolean |
hasNext()
Returns true if this cursor has more elements. |
S |
next()
Returns the next element from this cursor. |
| Methods inherited from class com.amazon.carbonado.cursor.AbstractCursor |
|---|
copyInto, copyInto, skipNext, toList, toList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntersectionCursor(Cursor<S> left,
Cursor<S> right,
Comparator<S> order)
left - cursor to wrapright - cursor to wraporder - describes sort ordering of wrapped cursors, which must be
a total ordering| Method Detail |
|---|
public void close()
throws FetchException
Cursor
FetchException
public boolean hasNext()
throws FetchException
Cursornext would return an element rather than throwing
an exception.
FetchException - if storage layer throws an exception
public S next()
throws FetchException
Cursor
FetchException - if storage layer throws an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||