Class RealGcs
java.lang.Object
io.github.flink.gcp.connector.testutils.bigquery.RealGcs
Cloud Storage plumbing for the gated FILE_LOADS ITCases: the
BQ_IT_GCS_BUCKET variable, a
client over the same application-default credentials RealBigQuery uses, and
staging-prefix upload, listing and cleanup.
A sibling of RealBigQuery rather than part of it: only FILE_LOADS stages anything, so
the BigQuery helper knows nothing about a bucket. It sits beside it all the same, because both
are plumbing over a gate variable and the three gates are worth finding in one place.
Named for the product and not RealStorage: sink.storage in the BigQuery
connector means the Storage Write API, which this is not.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeletePrefix(String prefix) Deletes everything underprefix; a successful load leaves nothing behind.static Iterable<com.google.cloud.storage.Blob>The objects currently underprefix.static voidUploadscontentatpathin the staging bucket.static StringThegs://URI ofpathin the staging bucket, forstagingPath(...).
-
Method Details
-
uri
Thegs://URI ofpathin the staging bucket, forstagingPath(...). -
upload
Uploadscontentatpathin the staging bucket. -
list
The objects currently underprefix. -
deletePrefix
Deletes everything underprefix; a successful load leaves nothing behind.
-