Class CommonStatsFlags
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.stats.CommonStatsFlags
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommonStatsFlags.Flag
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static CommonStatsFlags
ALL
static CommonStatsFlags
NONE
-
Constructor Summary
Constructors Constructor Description CommonStatsFlags(CommonStatsFlags.Flag... flags)
CommonStatsFlags(StreamInput in)
-
Method Summary
Modifier and Type Method Description CommonStatsFlags
all()
Sets all flags to return all stats.boolean
anySet()
CommonStatsFlags
clear()
Clears all stats.CommonStatsFlags
clone()
java.lang.String[]
completionDataFields()
CommonStatsFlags
completionDataFields(java.lang.String... completionDataFields)
java.lang.String[]
fieldDataFields()
CommonStatsFlags
fieldDataFields(java.lang.String... fieldDataFields)
Sets specific search group stats to retrieve the stats for.CommonStatsFlags.Flag[]
getFlags()
java.lang.String[]
groups()
CommonStatsFlags
groups(java.lang.String... groups)
Sets specific search group stats to retrieve the stats for.boolean
includeSegmentFileSizes()
CommonStatsFlags
includeSegmentFileSizes(boolean includeSegmentFileSizes)
boolean
isSet(CommonStatsFlags.Flag flag)
CommonStatsFlags
set(CommonStatsFlags.Flag flag, boolean add)
java.lang.String[]
types()
Document types to return stats for.CommonStatsFlags
types(java.lang.String... types)
Document types to return stats for.void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
-
-
Field Detail
-
ALL
public static final CommonStatsFlags ALL
-
NONE
public static final CommonStatsFlags NONE
-
-
Constructor Detail
-
CommonStatsFlags
public CommonStatsFlags(CommonStatsFlags.Flag... flags)
- Parameters:
flags
- flags to set. If no flags are supplied, default flags will be set.
-
CommonStatsFlags
public CommonStatsFlags(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
all
public CommonStatsFlags all()
Sets all flags to return all stats.
-
clear
public CommonStatsFlags clear()
Clears all stats.
-
anySet
public boolean anySet()
-
getFlags
public CommonStatsFlags.Flag[] getFlags()
-
types
public CommonStatsFlags types(java.lang.String... types)
Document types to return stats for. Mainly affectsCommonStatsFlags.Flag.Indexing
when enabled, returning specific indexing stats for those types.
-
types
public java.lang.String[] types()
Document types to return stats for. Mainly affectsCommonStatsFlags.Flag.Indexing
when enabled, returning specific indexing stats for those types.
-
groups
public CommonStatsFlags groups(java.lang.String... groups)
Sets specific search group stats to retrieve the stats for. Mainly affects search when enabled.
-
groups
public java.lang.String[] groups()
-
fieldDataFields
public CommonStatsFlags fieldDataFields(java.lang.String... fieldDataFields)
Sets specific search group stats to retrieve the stats for. Mainly affects search when enabled.
-
fieldDataFields
public java.lang.String[] fieldDataFields()
-
completionDataFields
public CommonStatsFlags completionDataFields(java.lang.String... completionDataFields)
-
completionDataFields
public java.lang.String[] completionDataFields()
-
includeSegmentFileSizes
public CommonStatsFlags includeSegmentFileSizes(boolean includeSegmentFileSizes)
-
includeSegmentFileSizes
public boolean includeSegmentFileSizes()
-
isSet
public boolean isSet(CommonStatsFlags.Flag flag)
-
set
public CommonStatsFlags set(CommonStatsFlags.Flag flag, boolean add)
-
clone
public CommonStatsFlags clone()
- Overrides:
clone
in classjava.lang.Object
-
-