mirror of https://github.com/apache/lucene.git
SOLR-13432: Add .toString methods to BitDocSet and SortedIntDocSet so that enabling "showItems" on the filter caches shows some useful information about the values in the cache
This commit is contained in:
parent
8dd22bc056
commit
f77c56dbc6
|
@ -258,6 +258,9 @@ Improvements
|
|||
* SOLR-13394: Switch default GC from CMS to G1 (Ishan Chattopadhyaya, Kesharee Nandan Vishwakarma, Shawn Heisey,
|
||||
Uwe Schindler, Erick Ericsson)
|
||||
|
||||
* SOLR-13432: Add .toString methods to BitDocSet and SortedIntDocSet so that enabling "showItems" on the filter caches
|
||||
shows some useful information about the values in the cache. (shalin)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -385,4 +385,12 @@ public class BitDocSet extends DocSetBase {
|
|||
public Collection<Accountable> getChildResources() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "BitDocSet{" +
|
||||
"size=" + size() +
|
||||
",ramUsed=" + RamUsageEstimator.humanReadableUnits(ramBytesUsed()) +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -804,4 +804,12 @@ public class SortedIntDocSet extends DocSetBase {
|
|||
public Collection<Accountable> getChildResources() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SortedIntDocSet{" +
|
||||
"size=" + size() + "," +
|
||||
"ramUsed=" + RamUsageEstimator.humanReadableUnits(ramBytesUsed())+
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue