Commit 0ef4d97
authored
Minor javadoc clarification that HasIndexSlice::getSlice can return null (#15581)
This commit adds a minor clarification to HasIndexSlice::getSlice, documenting that it may return null if the index input is not available. This is just a clarification of existing behaviour (rather than a change in behaviour), and the usage sites already cover the null check.
My motivation for this change is to make it more straightforward and clear that we can write filter wrapper delegates on top of KnnVectorValues - the filter can just implement HasIndexSlice and return null, rather than writing two different filter implementations.1 parent 726731f commit 0ef4d97
File tree
2 files changed
+4
-1
lines changed- lucene
- core/src/java/org/apache/lucene/codecs/lucene95
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
0 commit comments