Class TableSchemaCache


  • public class TableSchemaCache
    extends java.lang.Object
    An updatable cache for table schemas.
    • Method Detail

      • getSchema

        public @Nullable com.google.api.services.bigquery.model.TableSchema getSchema​(com.google.api.services.bigquery.model.TableReference tableReference,
                                                                                      BigQueryServices.DatasetService datasetService)
      • putSchemaIfAbsent

        public @Nullable com.google.api.services.bigquery.model.TableSchema putSchemaIfAbsent​(com.google.api.services.bigquery.model.TableReference tableReference,
                                                                                              com.google.api.services.bigquery.model.TableSchema tableSchema)
        Registers schema for a table if one is not already present. If a schema is already in the cache, returns the existing schema, otherwise returns null.
      • refreshThread

        public void refreshThread()