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

Variable Index

 o theIterator
this enumaretion used for iterator
 o tuples

Constructor Index

 o RelationExtent()
 o RelationExtent(DataInputStream)
Create RelationExtent from A DataInputStream(file)
 o RelationExtent(int, String)
Create RelationExtent from String and the Count.
 o RelationExtent(ResultSet, int)
 o RelationExtent(ResultSet, int, String)
should skip sign.

Method Index

 o addTuple(Tuple)
 o calSign(int[])
Recalculate the sign for each tuple, depends on the signs.
 o clone()
clone this RelationExtent
 o DeleteOppositeTuples()
 o doProject(int[])
Do the projection on the extends depends on the flags.
 o find(Tuple)
Find the corresponding tuple in this relationextent without compare the counter
 o getTuple(int)
 o initIterator()
 o insertTuple(Tuple)
 o minus(RelationExtent)
 o moreTuple()
 o nextExtentSQL(StringBuffer)
This function will generate a part of SQL.
 o nextExtentSQL(StringBuffer, String)
This function will generate a part of SQL.
 o plus(RelationExtent)
 o reverse()
 o size()
 o toString()
Output the RelationExtent to String.
 o write(DataOutputStream)

Variables

 o tuples
 Vector tuples
 o theIterator
 Enumeration theIterator
this enumaretion used for iterator

Constructors

 o RelationExtent
 public RelationExtent()
 o 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"
 o RelationExtent
 public RelationExtent(DataInputStream din)
Create RelationExtent from A DataInputStream(file)

 o RelationExtent
 public RelationExtent(ResultSet rs,
                       int colNum) throws Exception
 o RelationExtent
 public RelationExtent(ResultSet rs,
                       int colNum,
                       String sign) throws Exception
should skip sign. and set the Sign bit.

Methods

 o initIterator
 public void initIterator()
 o moreTuple
 public boolean moreTuple()
 o nextExtentSQL
 public int nextExtentSQL(StringBuffer Query)
This function will generate a part of SQL. It will generate a part of "insert" SQL.

 o 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.

 o minus
 public RelationExtent minus(RelationExtent sndExtent) throws Exception
 o plus
 public RelationExtent plus(RelationExtent sndExtent) throws Exception
 o getTuple
 public Tuple getTuple(int i)
 o size
 public int size()
 o reverse
 private void reverse()
 o DeleteOppositeTuples
 private void DeleteOppositeTuples()
 o write
 public void write(DataOutputStream dout)
 o insertTuple
 public void insertTuple(Tuple newTuple) throws Exception
 o addTuple
 public void addTuple(Tuple newTuple) throws Exception
 o 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
 o clone
 public Object clone()
clone this RelationExtent

Overrides:
clone in class Object
 o toString
 public String toString()
Output the RelationExtent to String.

Overrides:
toString in class Object
 o 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).

 o 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