Class SchemaDownloader
java.lang.Object
com.here.platform.data.client.converters.protobuf.schema.SchemaDownloader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamdownload(HRN catalogHrn, String layerId, Settings settings, org.apache.pekko.actor.ActorSystem actorSystem, org.apache.pekko.stream.Materializer materializer, scala.concurrent.ExecutionContext executionContext) Given a catalogHrn and layerId, download the relevant schema as a compressed input stream (zip)static InputStreamdownload(com.here.platform.data.client.scaladsl.internal.ArtifactApi artifactApi, HRN artifactHrn, String zipFileName, org.apache.pekko.stream.Materializer materializer, scala.concurrent.ExecutionContext executionContext) Download the zip file using artifact service (/artifact/{artifactHrn}/{zipFileName}) AnInputStreamcontaining the contents of the zip is returnedgetLayerDSSchema(com.here.platform.data.client.scaladsl.internal.ArtifactApi artifactApi, LayerSchema layerSchema) The ds schema is specifically the schema HRN contained in the "ds" variant of the schema record in the OLP artifact repository.static LayerSchemagetLayerSchema(com.here.platform.data.client.scaladsl.QueryApi queryApi, String layerId, scala.concurrent.ExecutionContext executionContext)
-
Constructor Details
-
SchemaDownloader
public SchemaDownloader()
-
-
Method Details
-
download
public static InputStream download(HRN catalogHrn, String layerId, Settings settings, org.apache.pekko.actor.ActorSystem actorSystem, org.apache.pekko.stream.Materializer materializer, scala.concurrent.ExecutionContext executionContext) Given a catalogHrn and layerId, download the relevant schema as a compressed input stream (zip)- Returns:
- directory where the schema has been extracted to
-
download
public static InputStream download(com.here.platform.data.client.scaladsl.internal.ArtifactApi artifactApi, HRN artifactHrn, String zipFileName, org.apache.pekko.stream.Materializer materializer, scala.concurrent.ExecutionContext executionContext) Download the zip file using artifact service (/artifact/{artifactHrn}/{zipFileName}) AnInputStreamcontaining the contents of the zip is returned -
getLayerSchema
public static LayerSchema getLayerSchema(com.here.platform.data.client.scaladsl.QueryApi queryApi, String layerId, scala.concurrent.ExecutionContext executionContext) -
getLayerDSSchema
public static scala.Tuple2<HRN,String> getLayerDSSchema(com.here.platform.data.client.scaladsl.internal.ArtifactApi artifactApi, LayerSchema layerSchema) The ds schema is specifically the schema HRN contained in the "ds" variant of the schema record in the OLP artifact repository.
-