Package io.squashql
Class BigQueryUtil
java.lang.Object
io.squashql.BigQueryUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final longstatic final StringSee usage to understand why it exists, but basically it is due to the lack of grouping function. -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>bigQueryTypeToClass(com.google.cloud.bigquery.LegacySQLTypeName dataType) static com.google.cloud.bigquery.StandardSQLTypeNameclassToBigQueryType(Class<?> clazz) static com.google.auth.oauth2.ServiceAccountCredentialsCreatesServiceAccountCredentialsfrom a file.static com.google.auth.oauth2.ServiceAccountCredentialscreateCredentialsFromFileContent(String jsonKey) static ObjectgetNullValue(Class<?> fieldType)
-
Field Details
-
OBJECT_NULL_VALUE
See usage to understand why it exists, but basically it is due to the lack of grouping function.- See Also:
-
INTEGER_NULL_VALUE
public static final int INTEGER_NULL_VALUE- See Also:
-
LONG_NULL_VALUE
public static final long LONG_NULL_VALUE- See Also:
-
-
Method Details
-
bigQueryTypeToClass
-
classToBigQueryType
-
getNullValue
-
createCredentialsFromFile
public static com.google.auth.oauth2.ServiceAccountCredentials createCredentialsFromFile(String path) CreatesServiceAccountCredentialsfrom a file. See https://cloud.google.com/bigquery/docs/authentication/service-account-file- Parameters:
path- path to the service account key file.- Returns:
- the
ServiceAccountCredentials
-
createCredentialsFromFileContent
public static com.google.auth.oauth2.ServiceAccountCredentials createCredentialsFromFileContent(String jsonKey)
-