Package org.graylog2.indexer.results
Class DefaultResultMessageFactory
java.lang.Object
org.graylog2.indexer.results.DefaultResultMessageFactory
- All Implemented Interfaces:
ResultMessageFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromMessage(Message message) Creates a newResultMessagefor the givenMessage.Returns a newResultMessagefor the given fields.parseFromSource(String id, String index, Map<String, Object> message, Map<String, List<String>> highlight) Returns a newResultMessagefor the given fields.
-
Constructor Details
-
DefaultResultMessageFactory
-
-
Method Details
-
parseFromSource
Description copied from interface:ResultMessageFactoryReturns a newResultMessagefor the given fields.- Specified by:
parseFromSourcein interfaceResultMessageFactory- Parameters:
id- the ID field valueindex- the index name fieldmessage- the map of message fields- Returns:
- the new result message
-
parseFromSource
public ResultMessage parseFromSource(String id, String index, Map<String, Object> message, Map<String, List<String>> highlight) Description copied from interface:ResultMessageFactoryReturns a newResultMessagefor the given fields.- Specified by:
parseFromSourcein interfaceResultMessageFactory- Parameters:
id- the ID field valueindex- the index name fieldmessage- the map of message fieldshighlight- the map of fields to highlight- Returns:
- the new result message
-
createFromMessage
Description copied from interface:ResultMessageFactoryCreates a newResultMessagefor the givenMessage.- Specified by:
createFromMessagein interfaceResultMessageFactory- Parameters:
message- the message- Returns:
- the new result message
-