All Packages Class Hierarchy This Package Previous Next Index
Class SWEEP.RelationExtent
java.lang.Object
|
+----SWEEP.RelationExtent
- public class RelationExtent
- extends Object
- implements Serializable, Cloneable
-
theIterator
- this enumaretion used for iterator
-
tuples
-
-
RelationExtent()
-
-
RelationExtent(DataInputStream)
- Create RelationExtent from A DataInputStream(file)
-
RelationExtent(int, String)
- Create RelationExtent from String and the Count.
-
RelationExtent(ResultSet, int)
-
-
RelationExtent(ResultSet, int, String)
- should skip sign.
-
addTuple(Tuple)
-
-
calSign(int[])
- Recalculate the sign for each tuple, depends on the signs.
-
clone()
- clone this RelationExtent
-
DeleteOppositeTuples()
-
-
doProject(int[])
- Do the projection on the extends depends on the flags.
-
find(Tuple)
- Find the corresponding tuple in this relationextent without compare the counter
-
getTuple(int)
-
-
initIterator()
-
-
insertTuple(Tuple)
-
-
minus(RelationExtent)
-
-
moreTuple()
-
-
nextExtentSQL(StringBuffer)
- This function will generate a part of SQL.
-
nextExtentSQL(StringBuffer, String)
- This function will generate a part of SQL.
-
plus(RelationExtent)
-
-
reverse()
-
-
size()
-
-
toString()
- Output the RelationExtent to String.
-
write(DataOutputStream)
-
tuples
Vector tuples
theIterator
Enumeration theIterator
- this enumaretion used for iterator
RelationExtent
public RelationExtent()
RelationExtent
public RelationExtent(int Count,
String Value)
- Create RelationExtent from String and the Count. Only for integration
with Andreas on Data Update Performance Evaluation.
- Parameters:
- Count - Count of the tuples
- Value - Value of tuple, format: "A|B|C"
RelationExtent
public RelationExtent(DataInputStream din)
- Create RelationExtent from A DataInputStream(file)
RelationExtent
public RelationExtent(ResultSet rs,
int colNum) throws Exception
RelationExtent
public RelationExtent(ResultSet rs,
int colNum,
String sign) throws Exception
- should skip sign. and set the Sign bit.
initIterator
public void initIterator()
moreTuple
public boolean moreTuple()
nextExtentSQL
public int nextExtentSQL(StringBuffer Query)
- This function will generate a part of SQL.
It will generate a part of "insert" SQL.
nextExtentSQL
public int nextExtentSQL(StringBuffer Query,
String sign)
- This function will generate a part of SQL.
It will generate a part of "insert" SQL.
Add SWEEPSIGN field.
minus
public RelationExtent minus(RelationExtent sndExtent) throws Exception
plus
public RelationExtent plus(RelationExtent sndExtent) throws Exception
getTuple
public Tuple getTuple(int i)
size
public int size()
reverse
private void reverse()
DeleteOppositeTuples
private void DeleteOppositeTuples()
write
public void write(DataOutputStream dout)
insertTuple
public void insertTuple(Tuple newTuple) throws Exception
addTuple
public void addTuple(Tuple newTuple) throws Exception
find
public Tuple find(Tuple newTuple) throws Exception
- Find the corresponding tuple in this relationextent without compare the counter
- Parameters:
- Tuple - the finding tuple
- the - matched tuple, otherwise null
clone
public Object clone()
- clone this RelationExtent
- Overrides:
- clone in class Object
toString
public String toString()
- Output the RelationExtent to String.
- Overrides:
- toString in class Object
doProject
public void doProject(int flags[]) throws Exception
- Do the projection on the extends depends on the flags.
e.g. have tuple (1,2,3,4,5), flags(0,3,2,0,1), then the result is (5,2,3).
calSign
public void calSign(int flags[]) throws NullPointerException
- Recalculate the sign for each tuple, depends on the signs.
All Packages Class Hierarchy This Package Previous Next Index