All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cube.database.Tuple

java.lang.Object
   |
   +----cube.database.Tuple

public class Tuple
extends Object
A Tuple is a binary relationship between a key column and a data column. The key and data must be valid column types.

For more information on the cube see the cube Overview.
Copyright © 1997 Curtis E. Dyreson. All rights reserved. Please be aware of the Licence and Version.

See Also:
Table

Constructor Index

 o Tuple(byte[], byte[])
Create a tuple with the given key/data values.
 o Tuple(Id)
Create a tuple with the given key, data is null.
 o Tuple(Id, Id)
Create a tuple with the given key/data values.
 o Tuple(Id, IdList)
Create a tuple with the given key/data values.
 o Tuple(Id, IdSet)
Create a tuple with the given key/data values.
 o Tuple(Id, StringCol)
Create a tuple with the given key/data values.
 o Tuple(IdList)
Create a tuple with the given key, data is null.
 o Tuple(IdList, IntegerCol)
Create a tuple with the given key/data values.
 o Tuple(IdSet)
Create a tuple with the given key, data is null.
 o Tuple(StringCol)
Create a tuple with the given key, data is null.
 o Tuple(StringCol, Id)
Create a tuple with the given key/data values.

Method Index

 o getKeyAsBytes()
Retrieve the key as a byte image.
 o getKeyAsId()
Retrieve the key as an Id.
 o getKeyAsIdList()
Retrieve the key as an IdList.
 o getKeyAsIdSet()
Retrieve the key as an IdSet.
 o getKeyAsIntegerCol()
Retrieve the key as an IntegerCol.
 o getKeyAsString()
Retrieve the key as a String.
 o getKeyAsStringCol()
Retrieve the key as a StringCol.
 o getValueAsBytes()
Retrieve the value as a byte image.
 o getValueAsId()
Retrieve the value as an Id.
 o getValueAsIdList()
Retrieve the value as an IdList.
 o getValueAsIdSet()
Retrieve the value as an IdSet.
 o getValueAsIntegerCol()
Retrieve the value as an IntegerCol.
 o getValueAsString()
Retrieve the value as a String.
 o getValueAsStringCol()
Retrieve the value as an StringCol.
 o updateValue(byte[])
Update the value field in a Tuple.

Constructors

 o Tuple
  public Tuple(byte key[],
               byte value[])
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(IdList key,
               IntegerCol value)
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(Id key,
               Id value)
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(Id key,
               IdList value)
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(StringCol key,
               Id value)
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(Id key,
               StringCol value)
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(Id key,
               IdSet value)
Create a tuple with the given key/data values.

 o Tuple
  public Tuple(Id key)
Create a tuple with the given key, data is null.

 o Tuple
  public Tuple(StringCol key)
Create a tuple with the given key, data is null.

 o Tuple
  public Tuple(IdSet key)
Create a tuple with the given key, data is null.

 o Tuple
  public Tuple(IdList key)
Create a tuple with the given key, data is null.

Methods

 o updateValue
  public void updateValue(byte value[])
Update the value field in a Tuple.

 o getKeyAsBytes
  public byte[] getKeyAsBytes()
Retrieve the key as a byte image.

 o getValueAsBytes
  public byte[] getValueAsBytes()
Retrieve the value as a byte image.

 o getKeyAsId
  public Id getKeyAsId()
Retrieve the key as an Id.

 o getKeyAsIntegerCol
  public IntegerCol getKeyAsIntegerCol()
Retrieve the key as an IntegerCol.

 o getKeyAsStringCol
  public StringCol getKeyAsStringCol()
Retrieve the key as a StringCol.

 o getKeyAsString
  public String getKeyAsString()
Retrieve the key as a String.

 o getKeyAsIdList
  public IdList getKeyAsIdList()
Retrieve the key as an IdList.

 o getKeyAsIdSet
  public IdSet getKeyAsIdSet()
Retrieve the key as an IdSet.

 o getValueAsId
  public Id getValueAsId()
Retrieve the value as an Id.

 o getValueAsIntegerCol
  public IntegerCol getValueAsIntegerCol()
Retrieve the value as an IntegerCol.

 o getValueAsStringCol
  public StringCol getValueAsStringCol()
Retrieve the value as an StringCol.

 o getValueAsString
  public String getValueAsString()
Retrieve the value as a String.

 o getValueAsIdSet
  public IdSet getValueAsIdSet()
Retrieve the value as an IdSet.

 o getValueAsIdList
  public IdList getValueAsIdList()
Retrieve the value as an IdList.


All Packages  Class Hierarchy  This Package  Previous  Next  Index