|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.searchlibrary.operatorlibrary.google.GoogleOp
public class GoogleOp
Operator class used to perform external lookups to the Google engine and create a
org.gcube.searchservice.searchlibrary.resultset.ResultSet with the results
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
URI |
compute(String query,
int resNo)
Performs the external lookup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String ObjectIdFieldNameDef
Field of the object id
public static String PayloadFieldNameDef
Field of the payload
public static final long TimeoutDef
IRecordWriter. Currently set to 60.
public static final TimeUnit TimeUnitDef
RecordWriter. The current default unit is seconds.
| Constructor Detail |
|---|
public GoogleOp(StatsContainer stats)
GoogleOp with the default timeout and the default field names for object id and payload
stats - Statistics
public GoogleOp(long timeout,
TimeUnit timeUnit,
StatsContainer stats)
GoogleOp with the default field names for object id and payload
timeUnit - The time unit of the timeoutstats - Statistics
public GoogleOp(String objectIdFieldName,
String payloadFieldName,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
GoogleOp with configurable timeout and field names for object id and payload
objectIdFieldName - 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 - Statistics| Method Detail |
|---|
public URI compute(String query,
int resNo)
throws Exception
type - The type of resource to createquery - Teh query stringresNo - number of results
org.gcube.searchservice.searchlibrary.resultset.ResultSet
Exception - An unrecoverable for the operation error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||