Package org.graylog2.indexer.results
Interface ResultMessageFactory
- All Known Implementing Classes:
DefaultResultMessageFactory
public interface ResultMessageFactory
-
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.
-
Method Details
-
parseFromSource
Returns a newResultMessagefor the given fields.- Parameters:
id- the ID field valueindex- the index name fieldmessage- the map of message fields- Returns:
- the new result message
-
parseFromSource
ResultMessage parseFromSource(String id, String index, Map<String, Object> message, Map<String, List<String>> highlight) Returns a newResultMessagefor the given fields.- 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
Creates a newResultMessagefor the givenMessage.- Parameters:
message- the message- Returns:
- the new result message
-