Class BQ_Util
java.lang.Object
com.maplander.backend.utils.bq.BQ_Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
ArrayStringsToString
(List<String> strings) static String
datesToString
(List<String> strings) static Long
executeDeleteQuery
(String query) static Long
executeInsertQuery
(String query) static com.google.cloud.bigquery.Job
executeQuery
(String query) static com.google.cloud.bigquery.TableResult
executeResultQuery
(String queryStr) static Long
executeUpdateQuery
(String query) static String
fileCStoString
(FileCS fileCS) static String
formatStringQuery
(String value) static String
getRepeatedIntValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName) getRepeatedStringValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName) static double
getSafeDoubleValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName) static int
getSafeIntegerValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName) static Long
getSafeLongValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName) static String
getSafeStringValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName) static String
getSafeStringValue
(com.google.cloud.bigquery.FieldValueList row, String fieldName, String subFieldName) static String
insertQuotationsMarks
(String value) static String
listIntToString
(List<Integer> objects) static String
-
Constructor Details
-
BQ_Util
public BQ_Util()
-
-
Method Details
-
fileCStoString
-
listIntToString
-
listIntToString
-
datesToString
-
ArrayStringsToString
-
executeResultQuery
-
executeQuery
-
executeInsertQuery
-
executeUpdateQuery
-
executeDeleteQuery
-
getSafeLongValue
-
getSafeIntegerValue
public static int getSafeIntegerValue(com.google.cloud.bigquery.FieldValueList row, String fieldName) -
getSafeDoubleValue
public static double getSafeDoubleValue(com.google.cloud.bigquery.FieldValueList row, String fieldName) -
getSafeStringValue
-
getSafeStringValue
-
getRepeatedIntValue
-
getRepeatedStringValue
-
formatStringQuery
-
formatStringQueryDescription
-
insertQuotationsMarks
-