Skip to content

Commit

Permalink
Read parallel_query. eu-cdse/openeo-cdse-infra#107
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed May 16, 2024
1 parent faffa90 commit 491237f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions openeogeotrellis/geopysparkcubemetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def provider_backend(self) -> Union[str, None]:
def auto_polarization(self) -> Union[str, None]:
return self.get("_vito", "data_source", "auto_polarization", default=False)

def parallel_query(self) -> Union[str, None]:
return self.get("_vito", "data_source", "parallel_query", default=False)

def common_name_priority(self) -> int:
priority = self.get("_vito", "data_source", "common_name_priority", default=None)
if priority is not None:
Expand Down
2 changes: 1 addition & 1 deletion openeogeotrellis/layercatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def pyramid_factory(
root_path,
):
opensearch_client = jvm.org.openeo.opensearch.OpenSearchClient.apply(
opensearch_endpoint, is_utm, "", metadata.band_names, catalog_type
opensearch_endpoint, is_utm, "", metadata.band_names, catalog_type, metadata.parallel_query()
)
return jvm.org.openeo.geotrellis.file.PyramidFactory(
opensearch_client,
Expand Down

0 comments on commit 491237f

Please sign in to comment.