remove bw comp layer that's not needed in CommonStatsFlags
This commit is contained in:
parent
1a2c7e0d25
commit
1ff22fe32a
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.action.admin.indices.stats;
|
package org.elasticsearch.action.admin.indices.stats;
|
||||||
|
|
||||||
import org.elasticsearch.Version;
|
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
@ -63,11 +62,7 @@ public class CommonStatsFlags implements Writeable, Cloneable {
|
||||||
groups = in.readStringArray();
|
groups = in.readStringArray();
|
||||||
fieldDataFields = in.readStringArray();
|
fieldDataFields = in.readStringArray();
|
||||||
completionDataFields = in.readStringArray();
|
completionDataFields = in.readStringArray();
|
||||||
if (in.getVersion().onOrAfter(Version.V_5_0_0_alpha1)) {
|
|
||||||
includeSegmentFileSizes = in.readBoolean();
|
includeSegmentFileSizes = in.readBoolean();
|
||||||
} else {
|
|
||||||
includeSegmentFileSizes = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -82,10 +77,8 @@ public class CommonStatsFlags implements Writeable, Cloneable {
|
||||||
out.writeStringArrayNullable(groups);
|
out.writeStringArrayNullable(groups);
|
||||||
out.writeStringArrayNullable(fieldDataFields);
|
out.writeStringArrayNullable(fieldDataFields);
|
||||||
out.writeStringArrayNullable(completionDataFields);
|
out.writeStringArrayNullable(completionDataFields);
|
||||||
if (out.getVersion().onOrAfter(Version.V_5_0_0_alpha1)) {
|
|
||||||
out.writeBoolean(includeSegmentFileSizes);
|
out.writeBoolean(includeSegmentFileSizes);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets all flags to return all stats.
|
* Sets all flags to return all stats.
|
||||||
|
|
Loading…
Reference in New Issue