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
-
fields
-
-
number
- String Arrays.
-
Tuple()
-
-
Tuple(DataInputStream)
-
-
Tuple(int, String)
- Construct a Tuple from a count number and a String.
-
Tuple(ResultSet, int)
-
-
Tuple(ResultSet, int, String)
- Skip Sign field and set the Sign bit.
-
Tuple(String[])
- this constructor will create tuple from a list of strings, default sign is insert.
-
Tuple(String[], int)
-
-
addField(Object)
-
-
calSign(int[])
- It will recalculate the sign depends on the flags.
-
clone()
-
-
doProject(int[])
- Do Project depends on the flags.
-
equals(Tuple)
-
-
getField(int)
-
-
getNum()
-
-
getNumber()
-
-
reverse()
-
-
setNumber(int)
-
-
size()
-
-
SQL()
-
-
SQL(String)
- Add SWEEPSIGN field.
-
toString()
- Convert to String.
-
write(DataOutputStream)
-
fields
Vector fields
number
int number
- String Arrays.
Tuple
public Tuple()
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"
Tuple
public Tuple(String newFields[])
- this constructor will create tuple from a list of strings, default sign is insert.
Tuple
public Tuple(String newFields[],
int newNumber)
Tuple
public Tuple(DataInputStream din)
Tuple
public Tuple(ResultSet rs,
int colNum) throws Exception
Tuple
public Tuple(ResultSet rs,
int colNum,
String sign) throws Exception
- Skip Sign field and set the Sign bit.
toString
public String toString()
- Convert to String.
- Overrides:
- toString in class Object
reverse
public void reverse()
SQL
public String SQL()
SQL
public String SQL(String sign)
- Add SWEEPSIGN field.
getNum
public int getNum()
write
public void write(DataOutputStream dout)
getNumber
public int getNumber()
setNumber
public void setNumber(int newNumber) throws Exception
getField
public Object getField(int i) throws Exception
equals
public boolean equals(Tuple t) throws Exception
size
public int size()
addField
public void addField(Object newField)
clone
public Object clone()
- Overrides:
- clone in class Object
doProject
public void doProject(int flags[]) throws Exception
- Do Project depends on the flags.
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