Package org.apache.druid.segment.loading
package org.apache.druid.segment.loading
-
ClassDescriptionCommon interface for items stored in a
StorageLocationCommon interface to specify a unique identifier of aCacheEntryfor aStorageLocationAStorageLocationselector strategy that selects a segment cache location that is least filled each time among the available storage locations.AStorageLocationselector strategy that selects a segment cache location that has most free space among the available storage locations.AStorageLocationselector strategy that selects a segment cache location randomly each time among the available storage locations.AStorageLocationselector strategy that selects a segment cache location in a round-robin fashion each time among the available storage locations.Use aSegmentIdas aCacheEntryIdentifierA class to fetch segment files from deep storage to local disk and manage the local cache.Logical representation of a local disk path to storeCacheEntry, controlling that the total size of stored files doesn't exceed theStorageLocation.maxSizeBytesand available space is always kept smaller thanStorageLocation.freeSpaceToKeep.StorageLocation.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.This interface describes the storage location selection strategy which is responsible for ordering the available multipleStorageLocations for segment distribution.Collection ofStorageLocationStatsandVirtualStorageLocationStatsfor all storage locations within aSegmentCacheManagerso thatSegmentCacheManager.getStorageStats()can be used byStorageMonitorto track segment cache activity.Empty segment with nothing but a time column, used whenSegmentLoaderConfig.isVirtualStorage()is true to create synthetic segments forSegmentMetadataQueryso to not force download of segments from deep storage when computing the SQL schema.