mirror of
https://github.com/apache/lucene.git
synced 2025-02-13 21:45:39 +00:00
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
(cherry picked from commit f77c56dbc636ec2305826c1734ae0885f222dd03)
This commit is contained in:
parent
980472aa47
commit
793c974a59
@ -233,6 +233,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…
x
Reference in New Issue
Block a user