Interface ResponseTransformer
-
- All Superinterfaces:
Stage
public interface ResponseTransformer extends Stage
Base interface for components that work on aQueryResponsebefore 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 voidprocessResponseDocuments(QueryResponse info, SearchDocumentList documents)Process the documents for a response.voidprocessResponseInfo(QueryResponse info)Process aQueryResponsewhich 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 aQueryResponsewhich 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
infoshould be the addition of feedback messages. If you want to do any transformation of theinfoblock, you should implementprocessResponseInfo(QueryResponse).- Parameters:
info-documents-- Throws:
AttivioException
-
-