Uses of Interface
org.apache.druid.segment.loading.CacheEntry
Packages that use CacheEntry
-
Uses of CacheEntry in org.apache.druid.segment.loading
Classes in org.apache.druid.segment.loading with type parameters of type CacheEntryModifier and TypeClassDescriptionstatic classStorageLocation.ReservationHold<TEntry extends CacheEntry>ACloseableCacheEntrywrapper representing both the entry and a 'hold' that is placed on it to prevent the entry from being dropped byStorageLocation.reclaim(long)at least until the wrapper is closed.Methods in org.apache.druid.segment.loading with type parameters of type CacheEntryModifier and TypeMethodDescription<T extends CacheEntry>
StorageLocation.ReservationHold<T>StorageLocation.addWeakReservationHold(CacheEntryIdentifier entryId, Supplier<? extends CacheEntry> entrySupplier) Returns aStorageLocation.ReservationHoldof aCacheEntrywith a 'hold' placed on it, preventing it from being automatically removed byStorageLocation.reclaim(long)if theCacheEntryis one ofStorageLocation.weakCacheEntriesuntil the hold is released byStorageLocation.ReservationHold.close().<T extends CacheEntry>
StorageLocation.ReservationHold<T>StorageLocation.addWeakReservationHoldIfExists(CacheEntryIdentifier entryId) Returns aStorageLocation.ReservationHoldof aCacheEntrywith a 'hold' placed on it, preventing it from being automatically removed byStorageLocation.reclaim(long)if theCacheEntryis one ofStorageLocation.weakCacheEntriesuntil the hold is released byStorageLocation.ReservationHold.close().<T extends CacheEntry>
TStorageLocation.getCacheEntry(CacheEntryIdentifier entryId) If aCacheEntryfor aCacheEntryIdentifierexists in eitherStorageLocation.staticCacheEntriesorStorageLocation.weakCacheEntries, this method will return it.<T extends CacheEntry>
TStorageLocation.getStaticCacheEntry(CacheEntryIdentifier entryId) Methods in org.apache.druid.segment.loading with parameters of type CacheEntryModifier and TypeMethodDescriptionvoidStorageLocation.release(CacheEntry entry) Removes an item fromStorageLocation.staticCacheEntries, reducingStorageLocation.currSizeBytesbygetSize().booleanStorageLocation.reserve(CacheEntry entry) Reserves space to store the givenCacheEntry, returning true if sucessful and false if already reserved, or unable to be reserved.booleanStorageLocation.reserveWeak(CacheEntry entry) Reserves space to store a 'weak' reservation for a givenCacheEntry.Method parameters in org.apache.druid.segment.loading with type arguments of type CacheEntryModifier and TypeMethodDescription<T extends CacheEntry>
StorageLocation.ReservationHold<T>StorageLocation.addWeakReservationHold(CacheEntryIdentifier entryId, Supplier<? extends CacheEntry> entrySupplier) Returns aStorageLocation.ReservationHoldof aCacheEntrywith a 'hold' placed on it, preventing it from being automatically removed byStorageLocation.reclaim(long)if theCacheEntryis one ofStorageLocation.weakCacheEntriesuntil the hold is released byStorageLocation.ReservationHold.close().