Class CommonStatsFlags

  • All Implemented Interfaces:
    java.lang.Cloneable, Writeable

    public class CommonStatsFlags
    extends java.lang.Object
    implements Writeable, java.lang.Cloneable
    • 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

      • anySet

        public boolean anySet()
      • types

        public java.lang.String[] types()
        Document types to return stats for. Mainly affects CommonStatsFlags.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()
      • clone

        public CommonStatsFlags clone()
        Overrides:
        clone in class java.lang.Object