org.eigenbase.rel
Class ValuesRel

java.lang.Object
  extended by org.eigenbase.rel.AbstractRelNode
      extended by org.eigenbase.rel.ValuesRelBase
          extended by org.eigenbase.rel.ValuesRel
All Implemented Interfaces:
Cloneable, RelNode

public class ValuesRel
extends ValuesRelBase

ValuesRel represents a sequence of zero or more literal row values.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/rel/ValuesRel.java#6 $
Author:
John V. Sichi

Field Summary
 
Fields inherited from class org.eigenbase.rel.ValuesRelBase
tuples
 
Fields inherited from class org.eigenbase.rel.AbstractRelNode
digest, id, nextId, rowType, traits
 
Fields inherited from interface org.eigenbase.rel.RelNode
emptyArray
 
Constructor Summary
ValuesRel(RelOptCluster cluster, RelDataType rowType, List<List<RexLiteral>> tuples)
          Creates a new ValuesRel.
 
Method Summary
 
Methods inherited from class org.eigenbase.rel.ValuesRelBase
clone, computeSelfCost, deriveRowType, explain, getRows, getTuples
 
Methods inherited from class org.eigenbase.rel.AbstractRelNode
childrenAccept, cloneTraits, collectVariablesSet, collectVariablesUsed, computeDigest, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRowType, getTable, getTraits, getVariablesStopped, inheritTraitsFrom, isAccessTo, isDistinct, isValid, onRegister, recomputeDigest, register, registerCorrelVariable, replaceInput, setCorrelVariable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValuesRel

public ValuesRel(RelOptCluster cluster,
                 RelDataType rowType,
                 List<List<RexLiteral>> tuples)
Creates a new ValuesRel. Note that tuples passed in become owned by this rel (without a deep copy), so caller must not modify them after this call, otherwise bad things will happen.

Parameters:
cluster - .
rowType - row type for tuples produced by this rel
tuples - 2-dimensional array of tuple values to be produced; outer list contains tuples; each inner list is one tuple; all tuples must be of same length, conforming to rowType