Class ValuesRel

  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.

$Id: //open/dev/farrago/src/org/eigenbase/rel/ $
John V. Sichi

Field Summary
Fields inherited from class org.eigenbase.rel.ValuesRelBase
Fields inherited from class org.eigenbase.rel.AbstractRelNode
digest, id, nextId, rowType, traits
Fields inherited from interface org.eigenbase.rel.RelNode
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


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.

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