in parquet_flask/io_logic/partitioned_parquet_path.py [0:0]
def load_from_es(self, es_result: dict):
if CDMSConstants.provider_col in es_result:
self.set_provider(es_result[CDMSConstants.provider_col])
if CDMSConstants.project_col in es_result:
self.set_project(es_result[CDMSConstants.project_col])
if CDMSConstants.platform_code_col in es_result:
self.set_platform(es_result[CDMSConstants.platform_code_col])
if CDMSConstants.year_col in es_result:
self.set_year(es_result[CDMSConstants.year_col])
if CDMSConstants.month_col in es_result:
self.set_month(es_result[CDMSConstants.month_col])
if CDMSConstants.geo_spatial_interval_col in es_result:
self.set_lat_lon(es_result[CDMSConstants.geo_spatial_interval_col])
return self