feature: Connect tag keys and tag value methods through Database

pull/24376/head
Carol (Nichols || Goulding) 2020-02-26 08:47:11 -05:00
parent eaea52edc9
commit 5bd9015ca1
1 changed files with 18 additions and 0 deletions

View File

@ -89,4 +89,22 @@ impl Database {
self.local_series_store
.read_f64_range(bucket.id, series_filter.id, range, batch_size)
}
pub fn get_tag_keys(
&self,
bucket: &Bucket,
predicate: Option<&Predicate>,
) -> Result<Box<dyn Iterator<Item = String> + Send>, StorageError> {
self.local_index.get_tag_keys(bucket.id, predicate)
}
pub fn get_tag_values(
&self,
bucket: &Bucket,
tag_key: &str,
predicate: Option<&Predicate>,
) -> Result<Box<dyn Iterator<Item = String> + Send>, StorageError> {
self.local_index
.get_tag_values(bucket.id, tag_key, predicate)
}
}