All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SWEEP.Tuple

java.lang.Object
   |
   +----SWEEP.Tuple

public class Tuple
extends Object
implements Serializable, Cloneable

Variable Index

 o fields
 o number
String Arrays.

Constructor Index

 o Tuple()
 o Tuple(DataInputStream)
 o Tuple(int, String)
Construct a Tuple from a count number and a String.
 o Tuple(ResultSet, int)
 o Tuple(ResultSet, int, String)
Skip Sign field and set the Sign bit.
 o Tuple(String[])
this constructor will create tuple from a list of strings, default sign is insert.
 o Tuple(String[], int)

Method Index

 o addField(Object)
 o calSign(int[])
It will recalculate the sign depends on the flags.
 o clone()
 o doProject(int[])
Do Project depends on the flags.
 o equals(Tuple)
 o getField(int)
 o getNum()
 o getNumber()
 o reverse()
 o setNumber(int)
 o size()
 o SQL()
 o SQL(String)
Add SWEEPSIGN field.
 o toString()
Convert to String.
 o write(DataOutputStream)

Variables

 o fields
 Vector fields
 o number
 int number
String Arrays.

Constructors

 o Tuple
 public Tuple()
 o Tuple
 public Tuple(int Count,
              String Value)
Construct a Tuple from a count number and a String.

Parameters:
Count - number of copies
Value - Fields in format: "A|B|C"
 o Tuple
 public Tuple(String newFields[])
this constructor will create tuple from a list of strings, default sign is insert.

 o Tuple
 public Tuple(String newFields[],
              int newNumber)
 o Tuple
 public Tuple(DataInputStream din)
 o Tuple
 public Tuple(ResultSet rs,
              int colNum) throws Exception
 o Tuple
 public Tuple(ResultSet rs,
              int colNum,
              String sign) throws Exception
Skip Sign field and set the Sign bit.

Methods

 o toString
 public String toString()
Convert to String.

Overrides:
toString in class Object
 o reverse
 public void reverse()
 o SQL
 public String SQL()
 o SQL
 public String SQL(String sign)
Add SWEEPSIGN field.

 o getNum
 public int getNum()
 o write
 public void write(DataOutputStream dout)
 o getNumber
 public int getNumber()
 o setNumber
 public void setNumber(int newNumber) throws Exception
 o getField
 public Object getField(int i) throws Exception
 o equals
 public boolean equals(Tuple t) throws Exception
 o size
 public int size()
 o addField
 public void addField(Object newField)
 o clone
 public Object clone()
Overrides:
clone in class Object
 o doProject
 public void doProject(int flags[]) throws Exception
Do Project depends on the flags.

 o calSign
 public void calSign(int flags[]) throws NullPointerException, NotMatchException, Exception
It will recalculate the sign depends on the flags. all the fields corresponding of flags should be same, then the sign is positive; otherwise, it is negative. e.g. tuple (n, 5, n, 6)[-3], flags is (0, 1, 0, 1), then the tuple should be: (n,5,n,6)[3];


All Packages  Class Hierarchy  This Package  Previous  Next  Index