org.apache.lens.server.api.driver
Class LensResultSet

java.lang.Object
  extended by org.apache.lens.server.api.driver.LensResultSet
Direct Known Subclasses:
InMemoryResultSet, PersistentResultSet

public abstract class LensResultSet
extends Object

Result set returned by driver.


Constructor Summary
LensResultSet()
           
 
Method Summary
abstract  LensResultSetMetadata getMetadata()
          Get the result set metadata
abstract  int size()
          Get the size of the result set.
abstract  QueryResult toQueryResult()
          Get the corresponding query result object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LensResultSet

public LensResultSet()
Method Detail

size

public abstract int size()
                  throws LensException
Get the size of the result set.

Returns:
The size if available, -1 if not available.
Throws:
LensException - the lens exception

getMetadata

public abstract LensResultSetMetadata getMetadata()
                                           throws LensException
Get the result set metadata

Returns:
Returns LensResultSetMetadata
Throws:
LensException

toQueryResult

public abstract QueryResult toQueryResult()
                                   throws LensException
Get the corresponding query result object.

Returns:
QueryResult
Throws:
LensException - the lens exception


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.