use of org.graylog.plugins.views.search.export.SimpleMessage in project graylog2-server by Graylog2.
the class ElasticsearchExportBackendITBase method collectTotalResult.
private SimpleMessageChunk collectTotalResult(ExportMessagesCommand command) {
LinkedHashSet<SimpleMessageChunk> allChunks = collectChunksFor(command);
LinkedHashSet<SimpleMessage> allMessages = new LinkedHashSet<>();
for (SimpleMessageChunk chunk : allChunks) {
keepOnlyRelevantFields(chunk, command.fieldsInOrder());
allMessages.addAll(chunk.messages());
}
return SimpleMessageChunk.from(command.fieldsInOrder(), allMessages);
}
use of org.graylog.plugins.views.search.export.SimpleMessage in project graylog2-server by Graylog2.
the class ElasticsearchExportBackendIT method collectTotalResult.
private SimpleMessageChunk collectTotalResult(ExportMessagesCommand command) {
LinkedHashSet<SimpleMessageChunk> allChunks = collectChunksFor(command);
LinkedHashSet<SimpleMessage> allMessages = new LinkedHashSet<>();
for (SimpleMessageChunk chunk : allChunks) {
keepOnlyRelevantFields(chunk, command.fieldsInOrder());
allMessages.addAll(chunk.messages());
}
return SimpleMessageChunk.from(command.fieldsInOrder(), allMessages);
}
Aggregations