concrete.services.results.ResultsServerService module¶
-
class
concrete.services.results.ResultsServerService.Client(iprot, oprot=None)¶ Bases:
concrete.services.Service.Client,concrete.services.results.ResultsServerService.Iface-
getLatestSearchResult(userId)¶ - Get the most recent search results for a userParameters:- userId
-
getNextChunk(sessionId)¶ - Get next chunk of data to annotateThe client should use the Retriever service to access the dataParameters:- sessionId
-
getSearchResult(searchResultId)¶ - Get a search result objectParameters:- searchResultId
-
getSearchResults(taskType, limit)¶ - Get a list of search results for a particular annotation taskSet the limit to 0 to get all relevant search resultsParameters:- taskType- limit
-
getSearchResultsByUser(taskType, userId, limit)¶ - Get a list of search results for a particular annotation task filtered by a user idSet the limit to 0 to get all relevant search resultsParameters:- taskType- userId- limit
-
recv_getLatestSearchResult()¶
-
recv_getNextChunk()¶
-
recv_getSearchResult()¶
-
recv_getSearchResults()¶
-
recv_getSearchResultsByUser()¶
-
recv_registerSearchResult()¶
-
recv_startSession()¶
-
recv_stopSession()¶
-
recv_submitAnnotation()¶
-
registerSearchResult(result, taskType)¶ - Register the specified search result for annotation.If a name has not been assigned to the search query, one will be generated.This service also requires that the user_id field be populated in the SearchQuery.Parameters:- result- taskType
-
send_getLatestSearchResult(userId)¶
-
send_getNextChunk(sessionId)¶
-
send_getSearchResult(searchResultId)¶
-
send_getSearchResults(taskType, limit)¶
-
send_getSearchResultsByUser(taskType, userId, limit)¶
-
send_registerSearchResult(result, taskType)¶
-
send_startSession(searchResultId, taskType)¶
-
send_stopSession(sessionId)¶
-
send_submitAnnotation(sessionId, unitId, communication)¶
-
startSession(searchResultId, taskType)¶ - Start an annotation sessionReturns a session id used in future session callsParameters:- searchResultId- taskType
-
stopSession(sessionId)¶ - Stops an annotation sessionParameters:- sessionId
-
submitAnnotation(sessionId, unitId, communication)¶ - Submit an annotation for a sessionParameters:- sessionId- unitId- communication
-
-
class
concrete.services.results.ResultsServerService.Iface¶ Bases:
concrete.services.Service.Iface-
getLatestSearchResult(userId)¶ - Get the most recent search results for a userParameters:- userId
-
getNextChunk(sessionId)¶ - Get next chunk of data to annotateThe client should use the Retriever service to access the dataParameters:- sessionId
-
getSearchResult(searchResultId)¶ - Get a search result objectParameters:- searchResultId
-
getSearchResults(taskType, limit)¶ - Get a list of search results for a particular annotation taskSet the limit to 0 to get all relevant search resultsParameters:- taskType- limit
-
getSearchResultsByUser(taskType, userId, limit)¶ - Get a list of search results for a particular annotation task filtered by a user idSet the limit to 0 to get all relevant search resultsParameters:- taskType- userId- limit
-
registerSearchResult(result, taskType)¶ - Register the specified search result for annotation.If a name has not been assigned to the search query, one will be generated.This service also requires that the user_id field be populated in the SearchQuery.Parameters:- result- taskType
-
startSession(searchResultId, taskType)¶ - Start an annotation sessionReturns a session id used in future session callsParameters:- searchResultId- taskType
-
stopSession(sessionId)¶ - Stops an annotation sessionParameters:- sessionId
-
submitAnnotation(sessionId, unitId, communication)¶ - Submit an annotation for a sessionParameters:- sessionId- unitId- communication
-
-
class
concrete.services.results.ResultsServerService.Processor(handler)¶ Bases:
concrete.services.Service.Processor,concrete.services.results.ResultsServerService.Iface,thrift.Thrift.TProcessor-
on_message_begin(func)¶
-
process(iprot, oprot)¶
-
process_getLatestSearchResult(seqid, iprot, oprot)¶
-
process_getNextChunk(seqid, iprot, oprot)¶
-
process_getSearchResult(seqid, iprot, oprot)¶
-
process_getSearchResults(seqid, iprot, oprot)¶
-
process_getSearchResultsByUser(seqid, iprot, oprot)¶
-
process_registerSearchResult(seqid, iprot, oprot)¶
-
process_startSession(seqid, iprot, oprot)¶
-
process_stopSession(seqid, iprot, oprot)¶
-
process_submitAnnotation(seqid, iprot, oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getLatestSearchResult_args(userId=None)¶ Bases:
objectAttributes:- userId-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getLatestSearchResult_result(success=None, ex=None)¶ Bases:
objectAttributes:- success- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getNextChunk_args(sessionId=None)¶ Bases:
objectAttributes:- sessionId-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getNextChunk_result(success=None, ex=None)¶ Bases:
objectAttributes:- success- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getSearchResult_args(searchResultId=None)¶ Bases:
objectAttributes:- searchResultId-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getSearchResult_result(success=None, ex=None)¶ Bases:
objectAttributes:- success- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getSearchResultsByUser_args(taskType=None, userId=None, limit=None)¶ Bases:
objectAttributes:- taskType- userId- limit-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getSearchResultsByUser_result(success=None, ex=None)¶ Bases:
objectAttributes:- success- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getSearchResults_args(taskType=None, limit=None)¶ Bases:
objectAttributes:- taskType- limit-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.getSearchResults_result(success=None, ex=None)¶ Bases:
objectAttributes:- success- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.registerSearchResult_args(result=None, taskType=None)¶ Bases:
objectAttributes:- result- taskType-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.registerSearchResult_result(ex=None)¶ Bases:
objectAttributes:- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.startSession_args(searchResultId=None, taskType=None)¶ Bases:
objectAttributes:- searchResultId- taskType-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.startSession_result(success=None, ex=None)¶ Bases:
objectAttributes:- success- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.stopSession_args(sessionId=None)¶ Bases:
objectAttributes:- sessionId-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-
-
class
concrete.services.results.ResultsServerService.stopSession_result(ex=None)¶ Bases:
objectAttributes:- ex-
read(iprot)¶
-
validate()¶
-
write(oprot)¶
-