Interface ResponseTransformer
-
- All Superinterfaces:
Stage
public interface ResponseTransformer extends Stage
Base interface for components that work on aQueryResponse
before being sent back to a client. The framework will first callprocessResponseInfo(QueryResponse)
, followed byprocessResponseDocuments(QueryResponse, SearchDocumentList)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processResponseDocuments(QueryResponse info, SearchDocumentList documents)
Process the documents for a response.void
processResponseInfo(QueryResponse info)
Process aQueryResponse
which contains information about the query request and the metadata about how long it took to compute the results.
-
-
-
Method Detail
-
processResponseInfo
void processResponseInfo(QueryResponse info) throws AttivioException
Process aQueryResponse
which contains information about the query request and the metadata about how long it took to compute the results.- Throws:
AttivioException
-
processResponseDocuments
void processResponseDocuments(QueryResponse info, SearchDocumentList documents) throws AttivioException
Process the documents for a response.NOTE: The only modifications made to
info
should be the addition of feedback messages. If you want to do any transformation of theinfo
block, you should implementprocessResponseInfo(QueryResponse)
.- Parameters:
info
-documents
-- Throws:
AttivioException
-
-