1 22 23 package org.xquark.extractor.algebra; 24 25 import java.util.List ; 26 import java.util.Set ; 27 28 public abstract class UnaryAlgebra extends UnaryOperator implements Relation 29 { 30 31 private static final String RCSRevision = "$Revision: 1.5 $"; 32 private static final String RCSName = "$Name: $"; 33 34 35 protected List _keys = null; 36 37 public UnaryAlgebra() {} 38 39 public UnaryAlgebra(Expression operand) 40 { 41 super (operand); 42 } 43 44 public List getParameterList() { 46 return null; 47 } 48 49 public Set providedTableInstances(){ 50 52 return visibleTableInstances(); 53 } 54 55 public Set visibleTableInstances() { 56 return ((Relation)getOperand()).providedTableInstances(); 57 } 58 59 public AttributeExpression findNonNullAttribute() { 60 return ((Relation)getOperand()).findNonNullAttribute(); 61 } 62 63 public Mapper getMapper() { 64 return _mapper == null ? getOperand().getMapper() : _mapper; 65 } 66 67 abstract public List getKeys(); 68 69 public void setKeys(List keys) { 70 _keys = keys; 71 } 72 73 74 public List nameTest(String name) 75 { 76 Relation oprnd = (Relation)getOperand(); 79 return oprnd.nameTest(name); 80 } 81 } 82 | Popular Tags |