public abstract class SearchResource extends RestResource
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_SCROLL_BATCH_SIZE |
protected Searches |
searches |
configuration, userService
Constructor and Description |
---|
SearchResource(Searches searches,
ClusterConfigService clusterConfigService,
DecoratorProcessor decoratorProcessor) |
Modifier and Type | Method and Description |
---|---|
protected org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> |
buildChunkedOutput(ScrollResult scroll) |
protected SearchResponse |
buildSearchResponse(SearchResult sr,
TimeRange timeRange,
boolean decorate,
Optional<String> streamId) |
protected Sorting |
buildSorting(String sort) |
void |
checkSearchPermission(String filter,
String searchPermission) |
protected Runnable |
createScrollChunkProducer(ScrollResult scroll,
org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> output) |
protected Set<IndexRangeSummary> |
indexRangeListToValueList(Set<IndexRange> indexRanges) |
protected List<String> |
parseFields(String fields) |
protected List<String> |
parseOptionalFields(String fields) |
protected TimeRange |
restrictTimeRange(TimeRange timeRange) |
protected List<ResultMessageSummary> |
resultMessageListtoValueList(List<ResultMessage> resultMessages) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
protected static final String DEFAULT_SCROLL_BATCH_SIZE
protected final Searches searches
public SearchResource(Searches searches, ClusterConfigService clusterConfigService, DecoratorProcessor decoratorProcessor)
protected SearchResponse buildSearchResponse(SearchResult sr, TimeRange timeRange, boolean decorate, Optional<String> streamId)
protected Set<IndexRangeSummary> indexRangeListToValueList(Set<IndexRange> indexRanges)
protected List<ResultMessageSummary> resultMessageListtoValueList(List<ResultMessage> resultMessages)
protected org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> buildChunkedOutput(ScrollResult scroll)
protected Runnable createScrollChunkProducer(ScrollResult scroll, org.glassfish.jersey.server.ChunkedOutput<ScrollResult.ScrollChunk> output)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.