Package org.apache.lucene.util
Interface Accountable
-
- All Known Subinterfaces:
FSTReader,QuantizedVectorsReader
- All Known Implementing Classes:
AbstractPagedMutable,Automaton,AutomatonQuery,BitDocIdSet,BitSet,BufferingKnnVectorsWriter,ByteBlockPool,ByteBuffersDataInput,ByteBuffersDataOutput,ByteRunAutomaton,BytesRefArray.SortState,BytesRefBlockPool,BytesRefHash,CharacterRunAutomaton,CharHashSet,CharObjectHashMap,CompiledAutomaton,DirectMonotonicReader,DirectMonotonicReader.Meta,DocIdSet,DocsWithFieldSet,FixedBitSet,FlatFieldVectorsWriter,FlatVectorsReader,FlatVectorsWriter,FloatArrayList,FrequencyTrackingRingBuffer,FST,GrowableWriter,IndexWriter,IntArrayList,IntDoubleHashMap,IntFloatHashMap,IntHashSet,IntIntHashMap,IntLongHashMap,IntObjectHashMap,KnnFieldVectorsWriter,KnnVectorsReader,KnnVectorsWriter,LongArrayList,LongBitSet,LongFloatHashMap,LongHashSet,LongIntHashMap,LongObjectHashMap,LRUQueryCache,LRUQueryCache.CacheAndCount,Lucene90CompressingStoredFieldsWriter,Lucene90CompressingTermVectorsWriter,Lucene99FlatVectorsReader,Lucene99FlatVectorsWriter,Lucene99HnswVectorsReader,Lucene99HnswVectorsWriter,Lucene99ScalarQuantizedVectorsReader,Lucene99ScalarQuantizedVectorsWriter,MonotonicBlockPackedReader,NotDocIdSet,NRTCachingDirectory,OffHeapFSTStore,OnHeapFSTStore,OnHeapHnswGraph,OrdinalMap,OrdToDocDISIReaderConfiguration,PackedInts.Mutable,PackedInts.NullReader,PackedInts.Reader,PackedLongValues,PackedLongValues.Builder,PagedBytes,PagedBytes.Reader,PagedGrowableWriter,PagedMutable,PerFieldKnnVectorsFormat.FieldsReader,PointInSetQuery,PrefixCodedTerms,PrefixQuery,RegexpQuery,RoaringDocIdSet,RunAutomaton,SparseFixedBitSet,StoredFieldsWriter,Term,TermInSetQuery,TermRangeQuery,TermVectorsWriter,WildcardQuery
public interface AccountableAn object whose RAM usage can be computed.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description static AccountableNULL_ACCOUNTABLEAn accountable that always returns 0
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Collection<Accountable>getChildResources()Returns nested resources of this class.longramBytesUsed()Return the memory usage of this object in bytes.
-
-
-
Field Detail
-
NULL_ACCOUNTABLE
static final Accountable NULL_ACCOUNTABLE
An accountable that always returns 0
-
-
Method Detail
-
ramBytesUsed
long ramBytesUsed()
Return the memory usage of this object in bytes. Negative values are illegal.
-
getChildResources
default Collection<Accountable> getChildResources()
Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- See Also:
Accountables
-
-