org.apache.lens.server.query
Class LensPersistentResult

java.lang.Object
  extended by org.apache.lens.server.api.driver.LensResultSet
      extended by org.apache.lens.server.api.driver.PersistentResultSet
          extended by org.apache.lens.server.query.LensPersistentResult

public class LensPersistentResult
extends PersistentResultSet

The Class LensPersistentResult.


Constructor Summary
LensPersistentResult(LensResultSetMetadata metadata, String outputPath, int numRows)
          Instantiates a new lens persistent result.
 
Method Summary
 LensResultSetMetadata getMetadata()
          Get the result set metadata
 String getOutputPath()
           
 int size()
          Get the size of the result set.
 
Methods inherited from class org.apache.lens.server.api.driver.PersistentResultSet
toQueryResult
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LensPersistentResult

public LensPersistentResult(LensResultSetMetadata metadata,
                            String outputPath,
                            int numRows)
Instantiates a new lens persistent result.

Parameters:
metadata - the metadata
outputPath - the output path
numRows - the num rows
Method Detail

getOutputPath

public String getOutputPath()
                     throws LensException
Specified by:
getOutputPath in class PersistentResultSet
Throws:
LensException

size

public int size()
         throws LensException
Description copied from class: LensResultSet
Get the size of the result set.

Specified by:
size in class LensResultSet
Returns:
The size if available, -1 if not available.
Throws:
LensException - the lens exception

getMetadata

public LensResultSetMetadata getMetadata()
                                  throws LensException
Description copied from class: LensResultSet
Get the result set metadata

Specified by:
getMetadata in class LensResultSet
Returns:
Returns LensResultSetMetadata
Throws:
LensException


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