| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector<Attribute> |
m_attributes |
protected java.util.Vector<Value> |
m_values |
| Constructor and Description |
|---|
Tuple(Schema sch,
java.lang.String values) |
Tuple(Schema sch,
Value[] val) |
Tuple(Tuple t)
Constructor by copy
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(Tuple t)
Compares two tuples.
|
boolean |
equals(java.lang.Object o) |
boolean |
equals(Tuple t) |
Value |
get(Literal a) |
int |
getDegree()
Returns the tuple's degree (i.e.
|
java.util.Set<Attribute> |
keySet() |
static Tuple |
makeTuple(java.util.Vector<Tuple> v)
Fusions multiple tuples to create a single tuple
|
void |
put(Attribute a,
Value v) |
void |
putAll(Tuple t) |
void |
setSchema(Schema sch)
Overwrites the schema of a tuple.
|
void |
setTable(java.lang.String name)
Affixes a given table name to all attributes of the tuple.
|
int |
size() |
java.lang.String |
toString() |
protected java.util.Vector<Attribute> m_attributes
protected java.util.Vector<Value> m_values
public Tuple(Tuple t)
t - A tuplepublic Tuple(Schema sch, java.lang.String values)
public void setSchema(Schema sch)
sch - The schema to replace the tuple's current onepublic void clear()
public void putAll(Tuple t)
public java.util.Set<Attribute> keySet()
public void setTable(java.lang.String name)
name - The table's namepublic int compareTo(Tuple t)
compareTo in interface java.lang.Comparable<Tuple>public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getDegree()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equals(Tuple t)
Copyright © Sylvain HallĂ©. All Rights Reserved.