EVEDemo.SWEEP
Class Tuple
java.lang.Object
|
+--EVEDemo.SWEEP.Tuple
- public class Tuple
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
Field Summary |
(package private) java.util.Vector |
fields
|
(package private) int |
number
String Arrays. |
Constructor Summary |
Tuple()
|
Tuple(java.io.DataInputStream din)
|
Tuple(int Count,
java.lang.String Value)
Construct a Tuple from a count number and a String. |
Tuple(java.sql.ResultSet rs,
int colNum)
|
Tuple(java.sql.ResultSet rs,
int colNum,
java.lang.String sign)
Skip Sign field and set the Sign bit. |
Tuple(java.lang.String[] newFields)
this constructor will create tuple from a list of strings, default sign is insert. |
Tuple(java.lang.String[] newFields,
int newNumber)
|
Method Summary |
void |
addField(java.lang.Object newField)
|
void |
calSign(int[] flags)
It will recalculate the sign depends on the flags. |
java.lang.Object |
clone()
|
void |
doProject(int[] flags)
Do Project depends on the flags. |
boolean |
equals(Tuple t)
|
java.lang.Object |
getField(int i)
|
int |
getNum()
|
int |
getNumber()
|
void |
reverse()
|
void |
setNumber(int newNumber)
|
int |
size()
|
java.lang.String |
SQL()
|
java.lang.String |
SQL(java.lang.String sign)
Add SWEEPSIGN field. |
java.lang.String |
toString()
Convert to String. |
void |
write(java.io.DataOutputStream dout)
|
Methods inherited from class java.lang.Object |
,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
fields
java.util.Vector fields
number
int number
- String Arrays.
Tuple
public Tuple()
Tuple
public Tuple(int Count,
java.lang.String Value)
- Construct a Tuple from a count number and a String.
- Parameters:
Count
- number of copiesValue
- Fields in format: "A|B|C"
Tuple
public Tuple(java.lang.String[] newFields)
- this constructor will create tuple from a list of strings, default sign is insert.
Tuple
public Tuple(java.lang.String[] newFields,
int newNumber)
Tuple
public Tuple(java.io.DataInputStream din)
Tuple
public Tuple(java.sql.ResultSet rs,
int colNum)
throws java.lang.Exception
Tuple
public Tuple(java.sql.ResultSet rs,
int colNum,
java.lang.String sign)
throws java.lang.Exception
- Skip Sign field and set the Sign bit.
toString
public java.lang.String toString()
- Convert to String.
- Overrides:
- toString in class java.lang.Object
reverse
public void reverse()
SQL
public java.lang.String SQL()
SQL
public java.lang.String SQL(java.lang.String sign)
- Add SWEEPSIGN field.
getNum
public int getNum()
write
public void write(java.io.DataOutputStream dout)
getNumber
public int getNumber()
setNumber
public void setNumber(int newNumber)
throws java.lang.Exception
getField
public java.lang.Object getField(int i)
throws java.lang.Exception
equals
public boolean equals(Tuple t)
throws java.lang.Exception
size
public int size()
addField
public void addField(java.lang.Object newField)
clone
public java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object
doProject
public void doProject(int[] flags)
throws java.lang.Exception
- Do Project depends on the flags.
calSign
public void calSign(int[] flags)
throws java.lang.NullPointerException,
NotMatchException,
java.lang.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];