Skip to content

Commit

Permalink
Add Map to XContentParser Wrapper (#44036)
Browse files Browse the repository at this point in the history
In some cases we need to parse some XContent that is already parsed into
a map. This is currently happening in handling source in SQL and ingest
processors as well as parsing null_value values in geo mappings. To avoid
re-serializing and parsing the value again or writing another map-based
parser this commit adds an iterator that iterates over a map as if it was
XContent. This makes reusing existing XContent parser on maps possible.

Relates to #43554
  • Loading branch information
imotov authored Jul 10, 2019
1 parent 3702bc3 commit 85cacff
Show file tree
Hide file tree
Showing 5 changed files with 603 additions and 35 deletions.
Loading

0 comments on commit 85cacff

Please sign in to comment.