|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EVEDemo.SWEEP.RelationExtent
Field Summary | |
(package private) java.util.Enumeration |
theIterator
this enumaretion used for iterator |
(package private) java.util.Vector |
tuples
|
Constructor Summary | |
RelationExtent()
|
|
RelationExtent(java.io.DataInputStream din)
Create RelationExtent from A DataInputStream(file) |
|
RelationExtent(int Count,
java.lang.String Value)
Create RelationExtent from String and the Count. |
|
RelationExtent(java.sql.ResultSet rs,
int colNum)
|
|
RelationExtent(java.sql.ResultSet rs,
int colNum,
java.lang.String sign)
should skip sign. |
Method Summary | |
void |
addTuple(Tuple newTuple)
|
void |
calSign(int[] flags)
Recalculate the sign for each tuple, depends on the signs. |
java.lang.Object |
clone()
clone this RelationExtent |
private void |
DeleteOppositeTuples()
|
void |
doProject(int[] flags)
Do the projection on the extends depends on the flags. |
Tuple |
find(Tuple newTuple)
Find the corresponding tuple in this relationextent without compare the counter |
Tuple |
getTuple(int i)
|
void |
initIterator()
|
void |
insertTuple(Tuple newTuple)
|
RelationExtent |
minus(RelationExtent sndExtent)
|
boolean |
moreTuple()
|
int |
nextExtentSQL(java.lang.StringBuffer Query)
This function will generate a part of SQL. |
int |
nextExtentSQL(java.lang.StringBuffer Query,
java.lang.String sign)
This function will generate a part of SQL. |
RelationExtent |
plus(RelationExtent sndExtent)
|
private void |
reverse()
|
int |
size()
|
java.lang.String |
toString()
Output the RelationExtent to String. |
void |
write(java.io.DataOutputStream dout)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Vector tuples
java.util.Enumeration theIterator
Constructor Detail |
public RelationExtent()
public RelationExtent(int Count, java.lang.String Value)
Count
- Count of the tuplesValue
- Value of tuple, format: "A|B|C"public RelationExtent(java.io.DataInputStream din)
public RelationExtent(java.sql.ResultSet rs, int colNum) throws java.lang.Exception
public RelationExtent(java.sql.ResultSet rs, int colNum, java.lang.String sign) throws java.lang.Exception
Method Detail |
public void initIterator()
public boolean moreTuple()
public int nextExtentSQL(java.lang.StringBuffer Query)
public int nextExtentSQL(java.lang.StringBuffer Query, java.lang.String sign)
public RelationExtent minus(RelationExtent sndExtent) throws java.lang.Exception
public RelationExtent plus(RelationExtent sndExtent) throws java.lang.Exception
public Tuple getTuple(int i)
public int size()
private void reverse()
private void DeleteOppositeTuples()
public void write(java.io.DataOutputStream dout)
public void insertTuple(Tuple newTuple) throws java.lang.Exception
public void addTuple(Tuple newTuple) throws java.lang.Exception
public Tuple find(Tuple newTuple) throws java.lang.Exception
Tuple
- the finding tuplethe
- matched tuple, otherwise nullpublic java.lang.Object clone()
public java.lang.String toString()
public void doProject(int[] flags) throws java.lang.Exception
public void calSign(int[] flags) throws java.lang.NullPointerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |