|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.JdbcOp
public class JdbcOp
Operator class used to perform an external search to a jdbc database creating a org.gcube.searchservice.searchlibrary.resultset.ResultSet
with the produced 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 |
| Constructor Summary | |
|---|---|
JdbcOp(long timeout,
TimeUnit timeUnit,
StatsContainer stats)
Creates a new JdbcOp with the default field names for object id and payload |
|
JdbcOp(StatsContainer stats)
Creates a new JdbcOp ith the default timeout and the default field names for object id and payload |
|
JdbcOp(String objectIdFieldName,
String payloadFieldName,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
Creates a new JdbcOp with configurable timeout and field names for object id and payload |
|
| Method Summary | |
|---|---|
URI |
compute(String query)
Perform the external search |
| 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
| Constructor Detail |
|---|
public JdbcOp(StatsContainer stats)
JdbcOp ith the default timeout and the default field names for object id and payload
stats - statistics
public JdbcOp(long timeout,
TimeUnit timeUnit,
StatsContainer stats)
JdbcOp with the default field names for object id and payload
timeUnit - The time unit of the timeoutstats - Statistics
public JdbcOp(String objectIdFieldName,
String payloadFieldName,
long timeout,
TimeUnit timeUnit,
StatsContainer stats)
JdbcOp 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)
throws Exception
query - The query string
Exception - An unrecoverable for the operation error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||