@@ -72,87 +72,164 @@ public interface StructReader {
72
72
*/
73
73
int getColumnIndex (String columnName );
74
74
75
- /** Returns the type of a column. */
75
+ /**
76
+ * @param columnIndex
77
+ * @return the type of a column.
78
+ */
76
79
Type getColumnType (int columnIndex );
77
80
78
- /** Returns the type of a column. */
81
+ /**
82
+ * @param columnName
83
+ * @return the type of a column.
84
+ */
79
85
Type getColumnType (String columnName );
80
86
81
- /** Returns {@code true} if a column contains a {@code NULL} value. */
87
+ /**
88
+ * @param columnIndex
89
+ * @return {@code true} if a column contains a {@code NULL} value.
90
+ */
82
91
boolean isNull (int columnIndex );
83
92
84
- /** Returns {@code true} if a column contains a {@code NULL} value. */
93
+ /**
94
+ * @param columnName
95
+ * @return {@code true} if a column contains a {@code NULL} value.
96
+ */
85
97
boolean isNull (String columnName );
86
98
87
- /** Returns the value of a non-{@code NULL} column with type {@link Type#bool()}. */
99
+ /**
100
+ * @param columnIndex
101
+ * @return the value of a non-{@code NULL} column with type {@link Type#bool()}.
102
+ */
88
103
boolean getBoolean (int columnIndex );
89
104
90
- /** Returns the value of a non-{@code NULL} column with type {@link Type#bool()}. */
105
+ /**
106
+ * @param columnName
107
+ * @return the value of a non-{@code NULL} column with type {@link Type#bool()}.
108
+ */
91
109
boolean getBoolean (String columnName );
92
110
93
- /** Returns the value of a non-{@code NULL} column with type {@link Type#int64()}. */
111
+ /**
112
+ * @param columnIndex
113
+ * @return the value of a non-{@code NULL} column with type {@link Type#int64()}.
114
+ */
94
115
long getLong (int columnIndex );
95
116
96
- /** Returns the value of a non-{@code NULL} column with type {@link Type#int64()}. */
117
+ /**
118
+ * @param columnName
119
+ * @return the value of a non-{@code NULL} column with type {@link Type#int64()}.
120
+ */
97
121
long getLong (String columnName );
98
122
99
- /** Returns the value of a non-{@code NULL} column with type {@link Type#float64()}. */
123
+ /**
124
+ * @param columnIndex
125
+ * @return the value of a non-{@code NULL} column with type {@link Type#float64()}.
126
+ */
100
127
double getDouble (int columnIndex );
101
128
102
- /** Returns the value of a non-{@code NULL} column with type {@link Type#float64()}. */
129
+ /**
130
+ * @param columnName
131
+ * @return the value of a non-{@code NULL} column with type {@link Type#float64()}.
132
+ */
103
133
double getDouble (String columnName );
104
134
105
- /** Returns the value of a non-{@code NULL} column with type {@link Type#numeric()}. */
135
+ /**
136
+ * @param columnIndex
137
+ * @return the value of a non-{@code NULL} column with type {@link Type#numeric()}.
138
+ */
106
139
BigDecimal getBigDecimal (int columnIndex );
107
140
108
- /** Returns the value of a non-{@code NULL} column with type {@link Type#numeric()}. */
141
+ /**
142
+ * @param columnName
143
+ * @return the value of a non-{@code NULL} column with type {@link Type#numeric()}.
144
+ */
109
145
BigDecimal getBigDecimal (String columnName );
110
146
111
- /** Returns the value of a non-{@code NULL} column with type {@link Type#string()}. */
147
+ /**
148
+ * @param columnIndex
149
+ * @return the value of a non-{@code NULL} column with type {@link Type#string()}.
150
+ */
112
151
String getString (int columnIndex );
113
152
114
- /** Returns the value of a non-{@code NULL} column with type {@link Type#string()}. */
153
+ /**
154
+ * @param columnName
155
+ * @return the value of a non-{@code NULL} column with type {@link Type#string()}.
156
+ */
115
157
String getString (String columnName );
116
158
117
- /** Returns the value of a non-{@code NULL} column with type {@link Type#json()}. */
159
+ /**
160
+ *
161
+ * @param columnIndex
162
+ * @return the value of a non-{@code NULL} column with type {@link Type#json()}.
163
+ */
118
164
default String getJson (int columnIndex ) {
119
165
throw new UnsupportedOperationException ("method should be overwritten" );
120
166
}
121
167
122
- /** Returns the value of a non-{@code NULL} column with type {@link Type#json()}. */
168
+ /**
169
+ * @param columnName
170
+ * @return the value of a non-{@code NULL} column with type {@link Type#json()}.
171
+ */
123
172
default String getJson (String columnName ) {
124
173
throw new UnsupportedOperationException ("method should be overwritten" );
125
174
}
126
175
127
- /** Returns the value of a non-{@code NULL} column with type {@link Type#pgJsonb()}. */
176
+ /**
177
+ *
178
+ * @param columnIndex
179
+ * @return the value of a non-{@code NULL} column with type {@link Type#pgJsonb()}.
180
+ */
128
181
default String getPgJsonb (int columnIndex ) {
129
182
throw new UnsupportedOperationException ("method should be overwritten" );
130
183
}
131
184
132
- /** Returns the value of a non-{@code NULL} column with type {@link Type#pgJsonb()}. */
185
+ /**
186
+ * @param columnName
187
+ * @return the value of a non-{@code NULL} column with type {@link Type#pgJsonb()}.
188
+ */
133
189
default String getPgJsonb (String columnName ) {
134
190
throw new UnsupportedOperationException ("method should be overwritten" );
135
191
}
136
192
137
- /** Returns the value of a non-{@code NULL} column with type {@link Type#bytes()}. */
193
+ /**
194
+ * @param columnIndex
195
+ * @return the value of a non-{@code NULL} column with type {@link Type#bytes()}.
196
+ */
138
197
ByteArray getBytes (int columnIndex );
139
198
140
- /** Returns the value of a non-{@code NULL} column with type {@link Type#bytes()}. */
199
+ /**
200
+ * @param columnName
201
+ * @return the value of a non-{@code NULL} column with type {@link Type#bytes()}.
202
+ */
141
203
ByteArray getBytes (String columnName );
142
204
143
- /** Returns the value of a non-{@code NULL} column with type {@link Type#timestamp()}. */
205
+ /**
206
+ * @param columnIndex
207
+ * @return the value of a non-{@code NULL} column with type {@link Type#timestamp()}.
208
+ */
144
209
Timestamp getTimestamp (int columnIndex );
145
210
146
- /** Returns the value of a non-{@code NULL} column with type {@link Type#timestamp()}. */
211
+ /**
212
+ * @param columnName
213
+ * @return the value of a non-{@code NULL} column with type {@link Type#timestamp()}.
214
+ */
147
215
Timestamp getTimestamp (String columnName );
148
216
149
- /** Returns the value of a non-{@code NULL} column with type {@link Type#date()}. */
217
+ /**
218
+ * @param columnIndex
219
+ * @return the value of a non-{@code NULL} column with type {@link Type#date()}.
220
+ */
150
221
Date getDate (int columnIndex );
151
222
152
- /** Returns the value of a non-{@code NULL} column with type {@link Type#date()}. */
223
+ /**
224
+ * @param columnName
225
+ * @return the value of a non-{@code NULL} column with type {@link Type#date()}.
226
+ */
153
227
Date getDate (String columnName );
154
228
155
- /** Returns the value of a nullable column as a {@link Value}. */
229
+ /**
230
+ * @param columnIndex
231
+ * @return the value of a nullable column as a {@link Value}.
232
+ */
156
233
default Value getValue (int columnIndex ) {
157
234
throw new UnsupportedOperationException ("method should be overwritten" );
158
235
}
0 commit comments