@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(FIELDDATA); builder.humanReadableField(MEMORY_SIZE_IN_BYTES, MEMORY_SIZE, getMemorySize()); builder.field(EVICTIONS, getEvictions()); if (fields != null) { fields.toXContent(builder, FIELDS, MEMORY_SIZE_IN_BYTES, MEMORY_SIZE); } builder.endObject(); return builder; }
@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(FIELDDATA); builder.byteSizeField(MEMORY_SIZE_IN_BYTES, MEMORY_SIZE, memorySize); builder.field(EVICTIONS, getEvictions()); if (fields != null) { fields.toXContent(builder, FIELDS, MEMORY_SIZE_IN_BYTES, MEMORY_SIZE); } builder.endObject(); return builder; }
@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(FIELDDATA); builder.humanReadableField(MEMORY_SIZE_IN_BYTES, MEMORY_SIZE, getMemorySize()); builder.field(EVICTIONS, getEvictions()); if (fields != null) { fields.toXContent(builder, FIELDS, MEMORY_SIZE_IN_BYTES, MEMORY_SIZE); } builder.endObject(); return builder; }
@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(Fields.FIELDDATA); builder.byteSizeField(Fields.MEMORY_SIZE_IN_BYTES, Fields.MEMORY_SIZE, memorySize); builder.field(Fields.EVICTIONS, getEvictions()); if (fields != null) { builder.startObject(Fields.FIELDS); assert !fields.containsKey(null); final Object[] keys = fields.keys; final long[] values = fields.values; for (int i = 0; i < keys.length; i++) { if (keys[i] != null) { builder.startObject((String) keys[i], XContentBuilder.FieldCaseConversion.NONE); builder.byteSizeField(Fields.MEMORY_SIZE_IN_BYTES, Fields.MEMORY_SIZE, values[i]); builder.endObject(); } } builder.endObject(); } builder.endObject(); return builder; }
@Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(FIELDDATA); builder.humanReadableField(MEMORY_SIZE_IN_BYTES, MEMORY_SIZE, getMemorySize()); builder.field(EVICTIONS, getEvictions()); if (fields != null) { fields.toXContent(builder, FIELDS, MEMORY_SIZE_IN_BYTES, MEMORY_SIZE); } builder.endObject(); return builder; }
private void sendFieldDataStats(String name, FieldDataStats fieldDataStats) { sendInt(name, "memorySizeInBytes", fieldDataStats.getMemorySizeInBytes()); sendInt(name, "evictions", fieldDataStats.getEvictions()); }
table.addCell(fdStats == null ? null : fdStats.getEvictions());
private void updateCache(NodeIndicesStatsBean nodeIndicesStatsBean, NodeIndicesStats nodeIndicesStats) { nodeIndicesStatsBean.cacheFieldEvictions = nodeIndicesStats.getFieldData().getEvictions(); nodeIndicesStatsBean.cacheFieldSize = nodeIndicesStats.getFieldData().getMemorySizeInBytes(); nodeIndicesStatsBean.cacheFilterEvictions = nodeIndicesStats.getFilterCache().getEvictions(); nodeIndicesStatsBean.cacheFilterSize = nodeIndicesStats.getFilterCache().getMemorySizeInBytes(); }
table.addCell(primaryStats.getFieldData() == null ? null : primaryStats.getFieldData().getMemorySize()); table.addCell(totalStats.getFieldData() == null ? null : totalStats.getFieldData().getEvictions()); table.addCell(primaryStats.getFieldData() == null ? null : primaryStats.getFieldData().getEvictions());
table.addCell(commonStats == null ? null : commonStats.getFieldData().getEvictions());
table.addCell(fdStats == null ? null : fdStats.getEvictions());
table.addCell(fdStats == null ? null : fdStats.getEvictions());
table.addCell(fdStats == null ? null : fdStats.getEvictions());
table.addCell(commonStats == null ? null : commonStats.getFieldData().getEvictions());
table.addCell(fdStats == null ? null : fdStats.getEvictions());
table.addCell(primaryStats.getFieldData() == null ? null : primaryStats.getFieldData().getMemorySize()); table.addCell(totalStats.getFieldData() == null ? null : totalStats.getFieldData().getEvictions()); table.addCell(primaryStats.getFieldData() == null ? null : primaryStats.getFieldData().getEvictions());
table.addCell(primaryStats.getFieldData() == null ? null : primaryStats.getFieldData().getMemorySize()); table.addCell(totalStats.getFieldData() == null ? null : totalStats.getFieldData().getEvictions()); table.addCell(primaryStats.getFieldData() == null ? null : primaryStats.getFieldData().getEvictions());
table.addCell(indexStats == null ? null : indexStats.getPrimaries().getFieldData().getMemorySize()); table.addCell(indexStats == null ? null : indexStats.getTotal().getFieldData().getEvictions()); table.addCell(indexStats == null ? null : indexStats.getPrimaries().getFieldData().getEvictions());
table.addCell(indexStats == null ? null : indexStats.getPrimaries().getFieldData().getMemorySize()); table.addCell(indexStats == null ? null : indexStats.getTotal().getFieldData().getEvictions()); table.addCell(indexStats == null ? null : indexStats.getPrimaries().getFieldData().getEvictions());