File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
kcbq-api/src/main/java/com/wepay/kafka/connect/bigquery/api
kcbq-connector/src/main/java/com/wepay/kafka/connect/bigquery Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com .wepay .kafka .connect .bigquery .api ;
2
2
3
3
4
+ /**
5
+ * Enum class for Kafka schema or record type, either value or key.
6
+ */
4
7
public enum KafkaSchemaRecordType {
5
8
6
9
VALUE ("value" ),
Original file line number Diff line number Diff line change 1
1
package com .wepay .kafka .connect .bigquery ;
2
2
3
3
4
- import com .google .cloud .bigquery .*;
4
+ import com .google .cloud .bigquery .BigQuery ;
5
+ import com .google .cloud .bigquery .Field ;
6
+ import com .google .cloud .bigquery .LegacySQLTypeName ;
7
+ import com .google .cloud .bigquery .StandardTableDefinition ;
8
+ import com .google .cloud .bigquery .TableId ;
9
+ import com .google .cloud .bigquery .TableInfo ;
10
+ import com .google .cloud .bigquery .TimePartitioning ;
5
11
import com .wepay .kafka .connect .bigquery .api .KafkaSchemaRecordType ;
6
12
import com .wepay .kafka .connect .bigquery .api .SchemaRetriever ;
7
13
import com .wepay .kafka .connect .bigquery .convert .KafkaDataBuilder ;
Original file line number Diff line number Diff line change @@ -574,15 +574,23 @@ public SchemaRetriever getSchemaRetriever() {
574
574
575
575
/**
576
576
*
577
- * @return An optional class of KafkaKeyFieldName.
577
+ * If the connector is configured to load Kafka data into BigQuery, this config defines
578
+ * the name of the kafka data field. A structure is created under the field name to contain
579
+ * kafka data schema including topic, offset, partition and insertTime.
580
+ *
581
+ * @return Field name of Kafka Data to be used in BigQuery
578
582
*/
579
583
public Optional <String > getKafkaKeyFieldName () {
580
584
return Optional .ofNullable (getString (KAFKA_KEY_FIELD_NAME_CONFIG ));
581
585
}
582
586
583
587
/**
584
588
*
585
- * @return An optional class of KafkaDataFieldName.
589
+ * If the connector is configured to load Kafka keys into BigQuery, this config defines
590
+ * the name of the kafka key field. A structure is created under the field name to contain
591
+ * a topic's Kafka key schema.
592
+ *
593
+ * @return Field name of Kafka Key to be used in BigQuery
586
594
*/
587
595
public Optional <String > getKafkaDataFieldName () {
588
596
return Optional .ofNullable (getString (KAFKA_DATA_FIELD_NAME_CONFIG ));
You can’t perform that action at this time.
0 commit comments