public class GoogleOp extends Object
org.gcube.searchservice.searchlibrary.resultset.ResultSet with the results| Modifier and Type | Field and Description |
|---|---|
static String |
ObjectIdFieldNameDef
The default name for the
Field of the object id |
static String |
PayloadFieldNameDef
The default name for the
Field of the payload |
static long |
TimeoutDef
The default timeout used by the
IRecordWriter. |
static TimeUnit |
TimeUnitDef
The default timeout unit used by the
RecordWriter. |
| Constructor and Description |
|---|
GoogleOp(long timeout,
TimeUnit timeUnit,
StatsContainer stats)
Creates a new
GoogleOp with the default field names for object id and payload |
GoogleOp(StatsContainer stats)
Creates a new
GoogleOp with the default timeout and the default field names for object id and payload |
GoogleOp(String objectIdFieldName,
String payloadFieldName,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
Creates a new
GoogleOp with configurable timeout and field names for object id and payload |
| Modifier and Type | Method and Description |
|---|---|
URI |
compute(String query,
int resNo)
Performs the external lookup
|
public static String ObjectIdFieldNameDef
Field of the object idpublic static String PayloadFieldNameDef
Field of the payloadpublic static final long TimeoutDef
IRecordWriter. Currently set to 60.public static final TimeUnit TimeUnitDef
RecordWriter. The current default unit is seconds.public GoogleOp(StatsContainer stats)
GoogleOp with the default timeout and the default field names for object id and payloadstats - Statisticspublic GoogleOp(long timeout,
TimeUnit timeUnit,
StatsContainer stats)
GoogleOp with the default field names for object id and payloadtimeUnit - The time unit of the timeoutstats - Statisticspublic GoogleOp(String objectIdFieldName, String payloadFieldName, long timeout, TimeUnit timeUnit, StatsContainer stats)
GoogleOp with configurable timeout and field names for object id and payloadobjectIdFieldName - The name of the Field which will hold the object idpayloadFieldName - The name of the Field which will hold the payloadtimeout - The timeout which will be used by the writertimeUnit - The time unit of the timeoutstats - Statisticspublic URI compute(String query, int resNo) throws Exception
type - The type of resource to createquery - Teh query stringresNo - number of resultsorg.gcube.searchservice.searchlibrary.resultset.ResultSetException - An unrecoverable for the operation error occurredCopyright © 2017. All Rights Reserved.