Java Code Examples for org.apache.lucene.util.Accountables#namedAccountables()
The following examples show how to use
org.apache.lucene.util.Accountables#namedAccountables() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LRUQueryCache.java From lucene-solr with Apache License 2.0 | 5 votes |
@Override public Collection<Accountable> getChildResources() { lock.lock(); try { return Accountables.namedAccountables("segment", cache); } finally { lock.unlock(); } }
Example 2
Source File: BloomFilteringPostingsFormat.java From lucene-solr with Apache License 2.0 | 5 votes |
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(Accountables.namedAccountables("field", bloomsByFieldName)); if (delegateFieldsProducer != null) { resources.add(Accountables.namedAccountable("delegate", delegateFieldsProducer)); } return Collections.unmodifiableList(resources); }
Example 3
Source File: DefaultSortedSetDocValuesReaderState.java From lucene-solr with Apache License 2.0 | 5 votes |
/** * Returns nested resources of this class. * The result should be a point-in-time snapshot (to avoid race conditions). * @see Accountables */ @Override public Collection<Accountable> getChildResources() { synchronized (cachedOrdMaps) { return Accountables.namedAccountables("DefaultSortedSetDocValuesReaderState", cachedOrdMaps); } }
Example 4
Source File: CachedOrdinalsReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public synchronized Collection<Accountable> getChildResources() { return Accountables.namedAccountables("segment", ordsCache); }
Example 5
Source File: GridLuceneDirectory.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public synchronized Collection<Accountable> getChildResources() { return Accountables.namedAccountables("file", new HashMap<>(fileMap)); }
Example 6
Source File: SuggestComponent.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("field", suggesters); }
Example 7
Source File: PerFieldDocValuesFormat.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("format", formats); }
Example 8
Source File: PerFieldPostingsFormat.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("format", formats); }
Example 9
Source File: BlockTreeTermsReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(Accountables.namedAccountables("field", fieldMap)); resources.add(Accountables.namedAccountable("delegate", postingsReader)); return Collections.unmodifiableList(resources); }
Example 10
Source File: RAMOnlyPostingsFormat.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("field", fieldToTerms); }
Example 11
Source File: VersionBlockTreeTermsReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(Accountables.namedAccountables("field", fields)); resources.add(Accountables.namedAccountable("delegate", postingsReader)); return Collections.unmodifiableList(resources); }
Example 12
Source File: FSTTermsReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(Accountables.namedAccountables("field", fields)); resources.add(Accountables.namedAccountable("delegate", postingsReader)); return Collections.unmodifiableCollection(resources); }
Example 13
Source File: SimpleTextFieldsReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public synchronized Collection<Accountable> getChildResources() { return Accountables.namedAccountables("field", termsCache); }
Example 14
Source File: FixedGapTermsIndexReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("field", fields); }
Example 15
Source File: VariableGapTermsIndexReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("field", fields); }
Example 16
Source File: OrdsBlockTreeTermsReader.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(Accountables.namedAccountables("field", fields)); resources.add(Accountables.namedAccountable("delegate", postingsReader)); return Collections.unmodifiableList(resources); }
Example 17
Source File: DirectPostingsFormat.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("field", fields); }