public abstract class Query extends Object implements ContentPackable<QueryEntity>
Modifier and Type | Class and Description |
---|---|
static class |
Query.Builder |
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
static Query.Builder |
builder() |
TimeRange |
effectiveTimeRange(SearchType searchType) |
static Query |
emptyRoot() |
abstract Filter |
filter() |
abstract Optional<GlobalOverride> |
globalOverride() |
boolean |
hasSearchType(String searchTypeId) |
boolean |
hasStreams() |
abstract String |
id() |
abstract BackendQuery |
query() |
abstract com.google.common.collect.ImmutableSet<SearchType> |
searchTypes() |
abstract TimeRange |
timerange() |
abstract Query.Builder |
toBuilder() |
QueryEntity |
toContentPackEntity(EntityDescriptorIds entityDescriptorIds) |
Set<String> |
usedStreamIds() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentPackPluginPackage, resolveNativeEntity
public abstract String id()
public abstract TimeRange timerange()
@Nonnull public abstract BackendQuery query()
public abstract Optional<GlobalOverride> globalOverride()
public TimeRange effectiveTimeRange(SearchType searchType)
@Nonnull public abstract com.google.common.collect.ImmutableSet<SearchType> searchTypes()
public abstract Query.Builder toBuilder()
public static Query.Builder builder()
public static Query emptyRoot()
public boolean hasStreams()
public boolean hasSearchType(String searchTypeId)
public QueryEntity toContentPackEntity(EntityDescriptorIds entityDescriptorIds)
toContentPackEntity
in interface ContentPackable<QueryEntity>
Copyright © 2012–2020 Graylog, Inc.. All rights reserved.