chord.bddbddb
Class Rel.RelView

java.lang.Object
  extended by chord.bddbddb.Rel.RelView
Enclosing class:
Rel

public class Rel.RelView
extends java.lang.Object

An immutable view of a relation.

Author:
Mayur Naik (mhn@cs.stanford.edu)

Constructor Summary
Rel.RelView()
           
 
Method Summary
 boolean contains(java.lang.Object[] vals)
           
<T> boolean
contains(T val)
          Determines whether this view contains the specified 1-tuple.
<T0,T1> boolean
contains(T0 val0, T1 val1)
          Determines whether this view contains the specified 2-tuple.
<T0,T1,T2> boolean
contains(T0 val0, T1 val1, T2 val2)
          Determines whether this view contains the specified 3-tuple.
<T0,T1,T2,T3>
boolean
contains(T0 val0, T1 val1, T2 val2, T3 val3)
          Determines whether this view contains the specified 4-tuple.
<T0,T1,T2,T3,T4>
boolean
contains(T0 val0, T1 val1, T2 val2, T3 val3, T4 val4)
           
<T0,T1,T2,T3,T4,T5>
boolean
contains(T0 val0, T1 val1, T2 val2, T3 val3, T4 val4, T5 val5)
           
 void delete(int domIdx)
           
 void free()
          Frees this view.
<T> java.lang.Iterable<T>
getAry1ValTuples()
           
<T0,T1> Rel.PairIterable<T0,T1>
getAry2ValTuples()
           
<T0,T1,T2> Rel.TrioIterable<T0,T1,T2>
getAry3ValTuples()
           
<T0,T1,T2,T3>
Rel.QuadIterable<T0,T1,T2,T3>
getAry4ValTuples()
           
<T0,T1,T2,T3,T4>
Rel.PentIterable<T0,T1,T2,T3,T4>
getAry5ValTuples()
           
<T0,T1,T2,T3,T4,T5>
Rel.HextIterable<T0,T1,T2,T3,T4,T5>
getAry6ValTuples()
           
 Rel.AryNIterable getAryNValTuples()
           
 void select(int domIdx, int idx)
           
 void select(int domIdx, java.lang.Object val)
           
 void selectAndDelete(int domIdx, int idx)
           
 void selectAndDelete(int domIdx, java.lang.Object val)
           
 int size()
          Provides the number of tuples in this view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rel.RelView

public Rel.RelView()
Method Detail

size

public int size()
Provides the number of tuples in this view.

Returns:
The number of tuples in this view.

contains

public <T> boolean contains(T val)
Determines whether this view contains the specified 1-tuple.

Type Parameters:
T - The type of the lone object in the 1-tuple.
Parameters:
val - The lone object in the 1-tuple.
Returns:
true iff this view contains the specified tuple.

contains

public <T0,T1> boolean contains(T0 val0,
                                T1 val1)
Determines whether this view contains the specified 2-tuple.

Type Parameters:
T0 - The type of the 0th object in the 2-tuple.
T1 - The type of the 1st object in the 2-tuple.
Parameters:
val0 - The 0th object in the 2-tuple.
val1 - The 1st object in the 2-tuple.
Returns:
true iff this view contains the specified tuple.

contains

public <T0,T1,T2> boolean contains(T0 val0,
                                   T1 val1,
                                   T2 val2)
Determines whether this view contains the specified 3-tuple.

Type Parameters:
T0 - The type of the 0th object in the 3-tuple.
T1 - The type of the 1st object in the 3-tuple.
T2 - The type of the 2nd object in the 3-tuple.
Parameters:
val0 - The 0th object in the 3-tuple.
val1 - The 1st object in the 3-tuple.
val2 - The 2nd object in the 3-tuple.
Returns:
true iff this view contains the specified tuple.

contains

public <T0,T1,T2,T3> boolean contains(T0 val0,
                                      T1 val1,
                                      T2 val2,
                                      T3 val3)
Determines whether this view contains the specified 4-tuple.

Type Parameters:
T0 - The type of the 0th object in the 4-tuple.
T1 - The type of the 1st object in the 4-tuple.
T2 - The type of the 2nd object in the 4-tuple.
T3 - The type of the 3rd object in the 4-tuple.
Parameters:
val0 - The 0th object in the 4-tuple.
val1 - The 1st object in the 4-tuple.
val2 - The 2nd object in the 4-tuple.
val3 - The 3rd object in the 4-tuple.
Returns:
true iff this view contains the specified tuple.

contains

public <T0,T1,T2,T3,T4> boolean contains(T0 val0,
                                         T1 val1,
                                         T2 val2,
                                         T3 val3,
                                         T4 val4)

contains

public <T0,T1,T2,T3,T4,T5> boolean contains(T0 val0,
                                            T1 val1,
                                            T2 val2,
                                            T3 val3,
                                            T4 val4,
                                            T5 val5)

contains

public boolean contains(java.lang.Object[] vals)

getAry1ValTuples

public <T> java.lang.Iterable<T> getAry1ValTuples()

getAry2ValTuples

public <T0,T1> Rel.PairIterable<T0,T1> getAry2ValTuples()

getAry3ValTuples

public <T0,T1,T2> Rel.TrioIterable<T0,T1,T2> getAry3ValTuples()

getAry4ValTuples

public <T0,T1,T2,T3> Rel.QuadIterable<T0,T1,T2,T3> getAry4ValTuples()

getAry5ValTuples

public <T0,T1,T2,T3,T4> Rel.PentIterable<T0,T1,T2,T3,T4> getAry5ValTuples()

getAry6ValTuples

public <T0,T1,T2,T3,T4,T5> Rel.HextIterable<T0,T1,T2,T3,T4,T5> getAry6ValTuples()

getAryNValTuples

public Rel.AryNIterable getAryNValTuples()

free

public void free()
Frees this view.


select

public void select(int domIdx,
                   java.lang.Object val)

select

public void select(int domIdx,
                   int idx)

delete

public void delete(int domIdx)

selectAndDelete

public void selectAndDelete(int domIdx,
                            java.lang.Object val)

selectAndDelete

public void selectAndDelete(int domIdx,
                            int idx)