Package org.apache.druid.segment.loading
Interface CacheEntry
public interface CacheEntry
Common interface for items stored in a
StorageLocation-
Method Summary
Modifier and TypeMethodDescriptiongetId()Unique identifier for the cache entrylonggetSize()Size in bytes of the cache entrybooleanvoidmount(StorageLocation location) Materializes the cache entry into the assignedStorageLocation.voidunmount()Removes the physical artifacts of a cache entry from the location it is currently mounted
-
Method Details
-
getId
CacheEntryIdentifier getId()Unique identifier for the cache entry -
getSize
long getSize()Size in bytes of the cache entry -
isMounted
boolean isMounted() -
mount
Materializes the cache entry into the assignedStorageLocation. If a cache entry is already mounted in the location, calling this method should be a no-op. It is an error condition to call this method if the cache entry is already mounted in a different location.- Throws:
IOExceptionSegmentLoadingException
-
unmount
void unmount()Removes the physical artifacts of a cache entry from the location it is currently mounted
-