Commit 4c59810
authored
[Refactor] Remaining Strings utility methods to core library (#9103)
This commit refactors the remaining Strings# utility methods from the
duplicate :server:Strings class to the :libs:opensearch-core:Strings
class. The CollectionUtils class (used by the Strings utility) is also
refactored to the :libs:opensearch-common library and the
unnecessary Strings.toString(XContentBuilder... static method is finally
refactored as an instance method in XContentBuilder.
The Strings class is also cleaned up for clarity.
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>1 parent bb78930 commit 4c59810
350 files changed
Lines changed: 4002 additions & 4410 deletions
File tree
- client/rest-high-level/src
- main/java/org/opensearch/client
- indices
- slm
- test/java/org/opensearch/client
- documentation
- distribution/archives/integ-test-zip/src/test/java/org/opensearch/test/rest
- libs
- core/src
- main/java/org/opensearch/core
- common
- xcontent
- test/java/org/opensearch/core
- action/support
- common
- x-content/src/test/java/org/opensearch/common/xcontent
- modules
- geo/src/internalClusterTest/java/org/opensearch/geo/search/aggregations/metrics
- lang-mustache/src
- internalClusterTest/java/org/opensearch/script/mustache
- main/java/org/opensearch/script/mustache
- mapper-extras/src/test/java/org/opensearch/index
- mapper
- query
- parent-join/src
- internalClusterTest/java/org/opensearch/join/query
- test/java/org/opensearch/join
- mapper
- query
- percolator/src/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
- repository-url/src/yamlRestTest/java/org/opensearch/repositories/url
- transport-netty4/src/javaRestTest/java/org/opensearch/rest
- plugins
- analysis-icu/src/test/java/org/opensearch/index/mapper
- discovery-gce/qa/gce/src/yamlRestTest/java/org/opensearch/cloud/gce
- events-correlation-engine/src
- javaRestTest/java/org/opensearch/plugin/correlation
- test/java/org/opensearch/plugin/correlation/core/index/query
- mapper-annotated-text/src/internalClusterTest/java/org/opensearch/index/mapper/annotatedtext
- mapper-size/src/internalClusterTest/java/org/opensearch/index/mapper/size
- qa
- full-cluster-restart/src/test/java/org/opensearch/upgrades
- mixed-cluster/src/test/java/org/opensearch/backwards
- multi-cluster-search/src/test/java/org/opensearch/search
- rolling-upgrade/src/test/java/org/opensearch/upgrades
- smoke-test-http/src/test/java/org/opensearch/http
- translog-policy/src/test/java/org/opensearch/upgrades
- server/src
- internalClusterTest/java/org/opensearch
- action
- admin/cluster/allocation
- bulk
- cluster/routing
- document
- gateway
- get
- index
- mapper
- shard
- indices
- mapping
- memory/breaker
- recovery
- state
- search
- aggregations/bucket
- basic
- fetch/subphase/highlight
- fields
- geo
- morelikethis
- query
- slice
- sort
- suggest
- main/java/org/opensearch
- action
- admin
- cluster
- health
- node
- info
- reload
- stats
- tasks
- cancel
- get
- list
- usage
- remotestore
- restore
- stats
- repositories/verify
- settings
- snapshots
- clone
- create
- get
- restore
- status
- stats
- indices
- alias
- analyze
- close
- create
- get
- mapping/get
- readonly
- recovery
- replication
- rollover
- settings
- get
- put
- stats
- template/put
- bulk
- fieldcaps
- get
- index
- ingest
- search
- support/replication
- cluster
- awarenesshealth
- coordination
- decommission
- health
- metadata
- routing/allocation
- command
- common
- geo/builders
- settings
- xcontent
- index
- get
- mapper
- query
- reindex
- search/stats
- shard
- translog
- indices/replication/common
- ingest
- persistent
- repositories
- script
- search
- aggregations
- support
- fetch/subphase/highlight
- pipeline
- rescore
- searchafter
- slice
- sort
- suggest
- completion/context
- phrase
- snapshots
- tasks
- transport
- test/java/org/opensearch
- action
- admin
- cluster
- allocation
- node/tasks
- reroute
- indices
- alias
- close
- create
- mapping
- get
- put
- rollover
- shrink
- stats
- validate/query
- delete
- get
- index
- main
- search
- support/replication
- update
- cluster
- metadata
- serialization
- common
- geo
- settings
- xcontent
- builder
- support
- filtering
- index
- fielddata
- get
- mapper
- query
- functionscore
- reindex
- search
- shard
- similarity
- snapshots/blobstore
- translog
- nodesinfo
- persistent
- rest/action
- script
- search
- aggregations
- bucket/terms
- metrics
- pipeline
- fetch/subphase/highlight
- geo
- internal
- profile
- query
- sort
- suggest/completion
- transport
- test/framework/src/main/java/org/opensearch
- index
- engine
- mapper
- search/aggregations
- snapshots
- test
- rest
- yaml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
client/rest-high-level/src/main/java/org/opensearch/client/slm/SnapshotRetentionConfiguration.java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
426 | | - | |
| 425 | + | |
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
769 | 768 | | |
770 | 769 | | |
771 | 770 | | |
772 | | - | |
| 771 | + | |
773 | 772 | | |
774 | 773 | | |
775 | 774 | | |
| |||
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
| 839 | + | |
841 | 840 | | |
842 | 841 | | |
843 | 842 | | |
| |||
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
680 | 686 | | |
681 | 687 | | |
682 | 688 | | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
683 | 760 | | |
684 | 761 | | |
685 | 762 | | |
| |||
0 commit comments