Commit d17f1b0
committed
refactor: trim docstrings and prune redundant ResultSet-shape tests
Three small follow-ups from PR #175 review:
- StreamingResultSet.of: drop the paragraph that pointed at the
HyperTypeToArrow.JDBC_TYPE_NAME_METADATA_KEY field-metadata key. The
docstring spilled implementation detail of the metadata-stamping path
into a generic "create a result set from a reader" entry-point; the
type-name override is documented at HyperTypeToArrow / ColumnMetadata
where it's relevant.
- ArrowStreamReaderCursor.loadNextNonEmptyBatch: rewrite the rationale
to answer "why does the cursor consume empty batches instead of the
caller?" directly. Empty IPC batches are valid Arrow and producers
emit them; JDBC's next() only knows rows, so this cursor is the seam
that translates batch-level signals into row-level advances.
- MetadataResultSetsTest: drop the JDBC ResultSet-shape slice (next /
isClosed / getStatement / unwrap / isWrapperFor / getHoldability /
getFetchSize / setFetchSize / getWarnings / getConcurrency / getType
/ getFetchDirection). Those test the StreamingResultSet plumbing
shared by every result set on this branch and are already covered by
StreamingResultSetMethodTest. Keep the arity-contract slice
(short/long/right/null/empty rows) — that is the
metadata-result-set-specific behavior.
Addresses: review comments on PR #175.1 parent 3617f2b commit d17f1b0
2 files changed
Lines changed: 5 additions & 107 deletions
File tree
- jdbc-core/src
- main/java/com/salesforce/datacloud/jdbc/core
- test/java/com/salesforce/datacloud/jdbc/core/metadata
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
| |||
Lines changed: 5 additions & 103 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 9 | | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 12 | | |
20 | 13 | | |
21 | 14 | | |
22 | | - | |
23 | 15 | | |
24 | | - | |
25 | 16 | | |
26 | 17 | | |
27 | 18 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
35 | 24 | | |
36 | 25 | | |
37 | 26 | | |
| |||
40 | 29 | | |
41 | 30 | | |
42 | 31 | | |
43 | | - | |
44 | | - | |
45 | 32 | | |
46 | 33 | | |
47 | 34 | | |
| |||
88 | 75 | | |
89 | 76 | | |
90 | 77 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 78 | | |
0 commit comments