public class LensPersistentResult extends PersistentResultSet
| Constructor and Description |
|---|
LensPersistentResult(FinishedLensQuery query,
org.apache.hadoop.conf.Configuration conf) |
LensPersistentResult(QueryContext ctx,
org.apache.hadoop.conf.Configuration conf) |
LensPersistentResult(QueryHandle queryHandle,
LensResultSetMetadata metadata,
String outputPath,
Integer numRows,
Long fileSize,
org.apache.hadoop.conf.Configuration conf)
Instantiates a new lens persistent result.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getFileSize()
Get the size of the result set file.
|
String |
getHttpResultUrl() |
LensResultSetMetadata |
getMetadata()
Get the result set metadata
|
String |
getOutputPath() |
boolean |
isHttpResultAvailable() |
Integer |
size()
Get the size of the result set.
|
canBePurged, toQueryResultpublic LensPersistentResult(QueryHandle queryHandle, LensResultSetMetadata metadata, String outputPath, Integer numRows, Long fileSize, org.apache.hadoop.conf.Configuration conf)
queryHandle - the query handlemetadata - the metadataoutputPath - the output pathnumRows - the num rowsconf - the lens server confpublic LensPersistentResult(QueryContext ctx, org.apache.hadoop.conf.Configuration conf)
public LensPersistentResult(FinishedLensQuery query, org.apache.hadoop.conf.Configuration conf) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionpublic String getOutputPath() throws LensException
getOutputPath in class LensResultSetLensExceptionpublic Integer size() throws LensException
LensResultSetsize in class LensResultSetLensException - the lens exceptionpublic Long getFileSize() throws LensException
PersistentResultSetgetFileSize in class PersistentResultSetLensException - the lens exceptionpublic LensResultSetMetadata getMetadata() throws LensException
LensResultSetgetMetadata in class LensResultSetLensResultSetMetadataLensExceptionpublic boolean isHttpResultAvailable()
isHttpResultAvailable in class PersistentResultSet@Generated(value="lombok") public String getHttpResultUrl()
getHttpResultUrl in class PersistentResultSetCopyright © 2014–2016 Apache Software Foundation. All rights reserved.