Commit 795e07c
authored
Dry up some spots around map reading from StreamInput (#96853)
Mostly the keys we read are strings, lets add an overload for that
to save some code and maybe help the compiler make better decisions.
Also readMapOfLists an be way simplified, no point in duplicating
the map reading code here just to save one capturing lambda, there's
not hot code that benefits from this.1 parent 01731ae commit 795e07c
File tree
125 files changed
+167
-186
lines changed- modules
- aggregations/src/main/java/org/elasticsearch/aggregations/pipeline
- ingest-common/src/main/java/org/elasticsearch/ingest/common
- ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip
- server/src
- main/java/org/elasticsearch
- action
- admin
- cluster
- allocation
- shards
- snapshots/get
- shard
- stats
- indices
- alias/get
- analyze
- diskusage
- mapping/get
- recovery
- settings/get
- shards
- stats
- template/get
- fieldcaps
- index
- search
- termvectors
- cluster
- coordination
- metadata
- routing/allocation/allocator
- common
- io/stream
- settings
- util/concurrent
- health/node
- index
- engine
- fielddata
- search/stats
- seqno
- shard
- store
- monitor/jvm
- node
- persistent
- repositories
- script
- search
- aggregations/support
- profile
- snapshots
- tasks
- upgrades
- test/java/org/elasticsearch/common/io/stream
- test/external-modules/seek-tracking-directory/src/main/java/org/elasticsearch/test/seektracker
- x-pack/plugin
- analytics/src/main/java/org/elasticsearch/xpack/analytics/stringstats
- autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling
- action
- capacity
- core/src/main/java/org/elasticsearch/xpack/core
- ccr
- action
- enrich
- ilm
- ml
- action
- datafeed
- dataframe
- inference
- preprocessing
- job/config
- stats
- rollup
- action
- job
- security/action
- apikey
- privilege
- profile
- user
- slm
- textstructure/structurefinder
- transform
- action
- transforms
- watcher/watch
- deprecation/src/main/java/org/elasticsearch/xpack/deprecation
- ent-search/src/main/java/org/elasticsearch/xpack/application/analytics/action
- eql/src/main/java/org/elasticsearch/xpack/eql/action
- logstash/src/main/java/org/elasticsearch/xpack/logstash/action
- ml/src
- main/java/org/elasticsearch/xpack/ml
- aggs
- frequentitemsets
- inference
- kstest
- inference
- test/java/org/elasticsearch/xpack/ml/aggs/frequentitemsets/mr
- profiler/src/main/java/org/elasticsearch/xpack/profiler
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
125 files changed
+167
-186
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 70 | + | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/DesiredBalanceResponse.java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Lines changed: 1 addition & 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 | 38 | | |
| |||
0 commit comments