Package org.apache.druid.data
Interface SearchableVersionedDataFinder<DataDescriptor>
- Type Parameters:
DataDescriptor- The containing type for the data. A simple example would be URI
public interface SearchableVersionedDataFinder<DataDescriptor>
A class which implements SearchableVersionedDataFinder can find a DataDescriptor which describes the most up to
date version of data given a base descriptor and a matching pattern. "Version" is completely dependent on the
implementation but is commonly equal to the "last modified" timestamp.
This is implemented explicitly for org.apache.druid.query.lookup.namespace.CacheGenerator
If you have a use case for this interface beyond CacheGenerator please bring it up in the dev list.
-
Method Summary
Modifier and TypeMethodDescriptiongetLatestVersion(DataDescriptor descriptorBase, Pattern pattern) Get's a DataDescriptor to the latest "version" of a data quantum starting with descriptorBase and matching based on pattern
-
Method Details
-
getLatestVersion
Get's a DataDescriptor to the latest "version" of a data quantum starting with descriptorBase and matching based on pattern- Parameters:
descriptorBase- The base unit of describing the data.pattern- A pattern which must match in order for a DataDescriptor to be considered.- Returns:
- A DataDescriptor which matches pattern, is a child of descriptorBase, and is of the most recent "version" at some point during the method execution.
-