Commit 4cf598e
committed
[Refactor] StreamIO and OpenSearchException foundation to core library
This commit refactors the Stream IO classes from the server to core
library to support cloud native and serverless extensions.
The following classes are refactored:
* StreamInput
* StreamOutput
* Writeable
* NamedWriteable
* NamedWriteableRegistry
* Index
* ShardId
* BytesReference
* ByteArray
* BigArray
* SecureString
* Text
* ParsingException
* RestStatus
The namespace is left unchanged but will be refactored in a follow up
commit to avoid split package in order to support jigsaw modularity.
Signed-off-by: Nicholas Walter Knize <[email protected]>1 parent c45073c commit 4cf598e
File tree
282 files changed
+2277
-1505
lines changed- client/rest-high-level/src
- main/java/org/opensearch/client
- core
- indices
- test/java/org/opensearch/client
- core/tasks
- documentation
- indices
- tasks
- libs
- core/src/main/java/org/opensearch
- action
- support
- common
- bytes
- compress
- io/stream
- settings
- text
- util
- xcontent
- core/common/io
- index
- shard
- snapshots
- rest
- x-content/src/test/java/org/opensearch/common/xcontent
- modules
- ingest-common/src
- main/java/org/opensearch/ingest/common
- test/java/org/opensearch/ingest/common
- ingest-geoip/src/internalClusterTest/java/org/opensearch/ingest/geoip
- lang-mustache/src
- main/java/org/opensearch/script/mustache
- test/java/org/opensearch/script/mustache
- lang-painless/src
- main/java/org/opensearch/painless/action
- test/java/org/opensearch/painless/action
- mapper-extras/src/test/java/org/opensearch/index/mapper
- parent-join/src/test/java/org/opensearch/join/mapper
- percolator/src
- internalClusterTest/java/org/opensearch/percolator
- main/java/org/opensearch/percolator
- test/java/org/opensearch/percolator
- rank-eval/src
- main/java/org/opensearch/index/rankeval
- test/java/org/opensearch/index/rankeval
- reindex/src
- main/java/org/opensearch/index/reindex
- remote
- test/java/org/opensearch/index/reindex
- search-pipeline-common/src/main/java/org/opensearch/search/pipeline/common
- plugins
- mapper-size/src/internalClusterTest/java/org/opensearch/index/mapper/size
- repository-gcs/src/test/java/org/opensearch/repositories/gcs
- qa
- smoke-test-http/src/test/java/org/opensearch/http
- server/src
- internalClusterTest/java/org/opensearch
- action
- admin/cluster/node/tasks
- bulk
- get
- ingest
- mget
- search
- aggregations
- fields
- geo
- scroll
- snapshots
- update
- main/java/org/opensearch
- action
- admin
- cluster
- shards/routing/weighted
- delete
- put
- snapshots/create
- indices
- create
- mapping
- get
- put
- template/put
- bulk
- get
- index
- ingest
- search
- support
- replication
- tasks
- termvectors
- update
- cluster/metadata
- common
- io/stream
- util
- xcontent
- index
- get
- mapper
- query
- functionscore
- reindex
- shard
- ingest
- repositories/blobstore
- rest
- script
- search
- fetch/subphase
- pipeline
- suggest/completion
- tasks
- test/java/org/opensearch
- action
- admin
- cluster
- node/tasks
- remotestore
- restore
- stats
- repositories/put
- reroute
- settings
- snapshots
- create
- restore
- storedscripts
- indices
- analyze
- rollover
- shards
- bulk
- explain
- fieldcaps
- get
- ingest
- search
- support
- replication
- termvectors
- update
- cluster
- coordination
- metadata
- routing
- common
- geo
- io/stream
- xcontent
- builder
- cbor
- support
- filtering
- index
- fielddata
- mapper
- reindex
- search/geo
- snapshots/blobstore
- ingest
- repositories
- rest
- action
- admin/indices
- script
- search
- aggregations
- bucket/histogram
- metrics
- builder
- fetch/subphase
- searchafter
- suggest
- completion
- snapshots
- tasks
- threadpool
- test/framework/src
- main/java/org/opensearch
- index
- engine
- mapper
- search
- snapshots
- test
- hamcrest
- rest/yaml
- test/java/org/opensearch/test
- hamcrest
- rest/yaml
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
282 files changed
+2277
-1505
lines changedLines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | | - | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | | - | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | | - | |
| 245 | + | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
424 | | - | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
862 | 863 | | |
863 | 864 | | |
864 | 865 | | |
865 | | - | |
| 866 | + | |
866 | 867 | | |
867 | 868 | | |
868 | 869 | | |
| |||
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
90 | | - | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | | - | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
0 commit comments