Skip to content

Commit c650c38

Browse files
author
Sagar Agarwal
committed
provide default implementation for interval methods in AbstractStructReader
1 parent b382999 commit c650c38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ protected String getPgJsonbInternal(int columnIndex) {
6767

6868
protected abstract Date getDateInternal(int columnIndex);
6969

70-
protected abstract Interval getIntervalInternal(int columnIndex);
70+
protected Interval getIntervalInternal(int columnIndex) {
71+
throw new UnsupportedOperationException("Not implemented");
72+
}
7173

7274
protected <T extends AbstractMessage> T getProtoMessageInternal(int columnIndex, T message) {
7375
throw new UnsupportedOperationException("Not implemented");
@@ -130,7 +132,9 @@ protected List<String> getPgJsonbListInternal(int columnIndex) {
130132

131133
protected abstract List<Date> getDateListInternal(int columnIndex);
132134

133-
protected abstract List<Interval> getIntervalListInternal(int columnIndex);
135+
protected List<Interval> getIntervalListInternal(int columnIndex) {
136+
throw new UnsupportedOperationException("Not implemented");
137+
}
134138

135139
protected abstract List<Struct> getStructListInternal(int columnIndex);
136140

0 commit comments

Comments
 (0)