Package org.graylog.plugins.views.search
Class Query
java.lang.Object
org.graylog.plugins.views.search.Query
- All Implemented Interfaces:
UsesSearchFilters,ContentPackable<QueryEntity>
public abstract class Query
extends Object
implements ContentPackable<QueryEntity>, UsesSearchFilters
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStreamsToFilter(Set<String> streamIds) applyExecutionState(ExecutionState executionState) static Query.Builderbuilder()effectiveStreams(SearchType searchType) effectiveTimeRange(SearchType searchType) static Queryabstract Filterfilter()abstract List<UsedSearchFilter>filters()abstract Optional<GlobalOverride>booleanbooleanhasSearchType(String searchTypeId) booleanabstract Stringid()abstract BackendQueryquery()abstract com.google.common.collect.ImmutableSet<SearchType>abstract TimeRangeabstract Query.BuildertoContentPackEntity(EntityDescriptorIds entityDescriptorIds) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.contentpacks.ContentPackable
getContentPackPluginPackage, resolveNativeEntity
-
Constructor Details
-
Query
public Query()
-
-
Method Details
-
id
-
timerange
-
filter
-
filters
- Specified by:
filtersin interfaceUsesSearchFilters
-
query
-
globalOverride
-
effectiveTimeRange
-
effectiveStreams
-
searchTypes
-
toBuilder
-
builder
-
applyExecutionState
-
emptyRoot
-
usedStreamIds
-
streamIdsForPermissionsCheck
-
hasStreams
public boolean hasStreams() -
hasReferencedStreamFilters
public boolean hasReferencedStreamFilters() -
addStreamsToFilter
-
hasSearchType
-
toContentPackEntity
- Specified by:
toContentPackEntityin interfaceContentPackable<QueryEntity>
-