org.apache.lens.driver.hive
Class HivePersistentResultSet

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.driver.hive.HivePersistentResultSet

public class HivePersistentResultSet
extends PersistentResultSet

The Class HivePersistentResultSet.


Constructor Summary
HivePersistentResultSet(org.apache.hadoop.fs.Path resultSetPath, org.apache.hive.service.cli.OperationHandle opHandle, org.apache.hive.service.cli.CLIServiceClient client)
          Instantiates a new hive persistent result set.
 
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

HivePersistentResultSet

public HivePersistentResultSet(org.apache.hadoop.fs.Path resultSetPath,
                               org.apache.hive.service.cli.OperationHandle opHandle,
                               org.apache.hive.service.cli.CLIServiceClient client)
                        throws org.apache.hive.service.cli.HiveSQLException
Instantiates a new hive persistent result set.

Parameters:
resultSetPath - the result set path
opHandle - the op handle
client - the client
Throws:
org.apache.hive.service.cli.HiveSQLException - the hive sql exception
Method Detail

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

getOutputPath

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

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.