Skip to content

Commit 36604a0

Browse files
committed
feat: implement wasNull for BigQueryResultSet
1 parent 484c8af commit 36604a0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryResultImpl.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
import org.apache.arrow.vector.util.JsonStringArrayList;
3131
import org.apache.arrow.vector.util.Text;
3232

33+
/**
34+
* An implementation of BigQueryResult.
35+
*
36+
* <p>This class and the ResultSet it returns is not thread-safe.
37+
*/
3338
public class BigQueryResultImpl<T> implements BigQueryResult<T> {
3439

3540
private static final String NULL_CURSOR_MSG =
@@ -688,6 +693,11 @@ public Date getDate(int columnIndex) throws SQLException {
688693
}
689694
}
690695

696+
/**
697+
* Returns whether the last column read had a value of SQL NULL. Note that you must first call
698+
* one of the getter methods on a column to try to read its value and then call the method
699+
* wasNull to see if the value read was SQL NULL. *
700+
*/
691701
@Override
692702
public boolean wasNull() {
693703
return wasNull;

0 commit comments

Comments
 (0)