org.apache.lens.driver.hive
Class HivePersistentResultSet
java.lang.Object
org.apache.lens.server.api.driver.LensResultSet
org.apache.lens.server.api.driver.PersistentResultSet
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. |
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 pathopHandle
- the op handleclient
- the client
- Throws:
org.apache.hive.service.cli.HiveSQLException
- the hive sql exception
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.