jtube将Java POJO流式传输到Google BigQuery。

class Person {

public String firstName;

public String lastName;

public Person(String firstName, String lastName) {

this.firstName = firstName;

this.lastName = lastName;

}

}

try {

JTube jtube = new JTube(\"googleserviceaccount\", \"/tmp/mycred.p12\");

Object o = new Person(\"firstName\", \"lastName\");

jtube.stream(o);

} catch (Exception ex) {

// 处理异常

}