Package org.apache.lucene.util
Interface Accountable
-
- All Known Subinterfaces:
AtomicFieldData,AtomicGeoPointFieldData,AtomicNumericFieldData,AtomicOrdinalsFieldData,BigArray,ByteArray,DoubleArray,FloatArray,FSTStore,IntArray,LongArray,ObjectArray<T>
- All Known Implementing Classes:
AbstractAtomicGeoPointFieldData,AbstractAtomicOrdinalsFieldData,AbstractPagedMutable,Automaton,AutomatonQuery,BinaryDVAtomicFieldData,BitDocIdSet,BitSet,BKDReader,BlockTreeTermsReader,ByteBlockPool,ByteBuffersDataInput,ByteBuffersDataOutput,ByteRunAutomaton,BytesRefHash,CharacterRunAutomaton,CodecReader,CombinedBitSet,CompiledAutomaton,CompletionsTermsReader,CompressingStoredFieldsIndexReader,CompressingStoredFieldsReader,CompressingTermVectorsReader,ContextQuery,CoveringQuery,DocIdSet,DocValuesProducer,EmptyDocValuesProducer,FieldReader,FieldsProducer,FilterCodecReader,FixedBitSet,FrequencyTrackingRingBuffer,FST,GlobalOrdinalsIndexFieldData,GlobalOrdinalsIndexFieldData.Consumer,GrowableWriter,IndexWriter,LongBitSet,Lookup,LRUQueryCache,Lucene60PointsReader,Lucene84PostingsReader,MonotonicBlockPackedReader,MultiOrdinals,NormsProducer,NotDocIdSet,NRTSuggester,OffHeapFSTStore,OnHeapFSTStore,OrdinalMap,Ordinals,PackedInts.Mutable,PackedInts.NullReader,PackedInts.Reader,PackedLongValues,PackedLongValues.Builder,PagedBytes,PagedBytes.Reader,PagedBytesAtomicFieldData,PagedGrowableWriter,PagedMutable,PointInSetQuery,PointsReader,PostingsReaderBase,PrefixCodedTerms,PrefixQuery,RAMDirectory,RAMFile,RAMOutputStream,RegexpQuery,RoaringDocIdSet,RunAutomaton,SegmentReader,SinglePackedOrdinals,SortedNumericDVIndexFieldData.NanoSecondFieldData,SortedSetDVBytesAtomicFieldData,SparseFixedBitSet,StoredFieldsReader,Term,TermInSetQuery,TermRangeQuery,TermVectorsReader,WildcardQuery
public interface AccountableAn object whose RAM usage can be computed.
-
-
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.
-
-
-
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
-
-