mirror of https://github.com/apache/druid.git
94c1671eaf
This PR splits current SegmentLoader into SegmentLoader and SegmentCacheManager. SegmentLoader - this class is responsible for building the segment object but does not expose any methods for downloading, cache space management, etc. Default implementation delegates the download operations to SegmentCacheManager and only contains the logic for building segments once downloaded. . This class will be used in SegmentManager to construct Segment objects. SegmentCacheManager - this class manages the segment cache on the local disk. It fetches the segment files to the local disk, can clean up the cache, and in the future, support reserve and release on cache space. [See https://github.com/Make SegmentLoader extensible and customizable #11398]. This class will be used in ingestion tasks such as compaction, re-indexing where segment files need to be downloaded locally. |
||
---|---|---|
.. | ||
_bin | ||
assets | ||
comparisons | ||
configuration | ||
dependencies | ||
design | ||
development | ||
ingestion | ||
misc | ||
operations | ||
querying | ||
tutorials |