org.jrdf.query
Class AnswerImpl

java.lang.Object
  extended by org.jrdf.query.AnswerImpl
All Implemented Interfaces:
Serializable, Answer

public final class AnswerImpl
extends Object
implements Answer, Serializable

Default implementation of Answer.

Version:
$Revision: 1822 $
See Also:
Serialized Form

Constructor Summary
AnswerImpl(LinkedHashSet<Attribute> newHeading, Relation newResults, long timeTaken, boolean hasProjected)
           
 
Method Summary
 boolean equals(Object obj)
           
 String[] getColumnNames()
           
 String[][] getColumnValues()
           
 long getTimeTaken()
           
 int hashCode()
           
 long numberOfTuples()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnswerImpl

public AnswerImpl(LinkedHashSet<Attribute> newHeading,
                  Relation newResults,
                  long timeTaken,
                  boolean hasProjected)
Method Detail

getColumnNames

public String[] getColumnNames()
Specified by:
getColumnNames in interface Answer

getColumnValues

public String[][] getColumnValues()
Specified by:
getColumnValues in interface Answer

numberOfTuples

public long numberOfTuples()
Specified by:
numberOfTuples in interface Answer

getTimeTaken

public long getTimeTaken()
Specified by:
getTimeTaken in interface Answer

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object