public abstract class BigQueryInsertableRelationBase
extends org.apache.spark.sql.sources.BaseRelation
implements org.apache.spark.sql.sources.InsertableRelation
| Modifier and Type | Field and Description |
|---|---|
protected BigQueryClient |
bigQueryClient |
protected SparkBigQueryConfig |
config |
protected org.slf4j.Logger |
logger |
protected org.apache.spark.sql.SQLContext |
sqlContext |
protected Optional<com.google.cloud.bigquery.TableInfo> |
table |
| Modifier | Constructor and Description |
|---|---|
protected |
BigQueryInsertableRelationBase(BigQueryClient bigQueryClient,
org.apache.spark.sql.SQLContext sqlContext,
SparkBigQueryConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Does this table exist?
|
com.google.cloud.bigquery.TableId |
getTableId() |
boolean |
isEmpty()
Is this table empty? A none-existing table is considered to be empty
|
org.apache.spark.sql.types.StructType |
schema() |
org.apache.spark.sql.SQLContext |
sqlContext() |
needConversion, sizeInBytes, unhandledFiltersprotected final org.slf4j.Logger logger
protected final BigQueryClient bigQueryClient
protected final org.apache.spark.sql.SQLContext sqlContext
protected final SparkBigQueryConfig config
protected final Optional<com.google.cloud.bigquery.TableInfo> table
protected BigQueryInsertableRelationBase(BigQueryClient bigQueryClient, org.apache.spark.sql.SQLContext sqlContext, SparkBigQueryConfig config)
public org.apache.spark.sql.SQLContext sqlContext()
sqlContext in class org.apache.spark.sql.sources.BaseRelationpublic org.apache.spark.sql.types.StructType schema()
schema in class org.apache.spark.sql.sources.BaseRelationpublic boolean exists()
public boolean isEmpty()
public com.google.cloud.bigquery.TableId getTableId()
Copyright © 2024. All rights reserved.