Package org.elasticsearch.xcontent
Class DotExpandingXContentParser
java.lang.Object
org.elasticsearch.xcontent.FilterXContentParser
org.elasticsearch.xcontent.DotExpandingXContentParser
- All Implemented Interfaces:
Closeable,AutoCloseable,XContentParser
An XContentParser that reinterprets field names containing dots as an object structure.
A fieldname named
"foo.bar.baz":... will be parsed instead as 'foo':{'bar':{'baz':...}}-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.XContentParser
XContentParser.NumberType, XContentParser.Token -
Field Summary
Fields inherited from class org.elasticsearch.xcontent.FilterXContentParser
in -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic XContentParserWraps an XContentParser such that it re-interprets dots in field names as an object structurevoidMethods inherited from class org.elasticsearch.xcontent.FilterXContentParser
allowDuplicateKeys, binaryValue, charBuffer, charBufferOrNull, close, contentType, doubleValue, doubleValue, floatValue, floatValue, getDeprecationHandler, getRestApiVersion, getTokenLocation, getXContentRegistry, hasTextCharacters, intValue, intValue, isBooleanValue, isClosed, list, listOrderedMap, longValue, longValue, map, map, mapOrdered, mapStrings, namedObject, numberType, objectBytes, objectText, shortValue, shortValue, text, textCharacters, textLength, textOffset
-
Method Details
-
expandDots
Wraps an XContentParser such that it re-interprets dots in field names as an object structure- Parameters:
in- the parser to wrap- Returns:
- the wrapped XContentParser
- Throws:
IOException
-
nextToken
- Specified by:
nextTokenin interfaceXContentParser- Overrides:
nextTokenin classFilterXContentParser- Throws:
IOException
-
currentToken
- Specified by:
currentTokenin interfaceXContentParser- Overrides:
currentTokenin classFilterXContentParser
-
currentName
- Specified by:
currentNamein interfaceXContentParser- Overrides:
currentNamein classFilterXContentParser- Throws:
IOException
-
skipChildren
- Specified by:
skipChildrenin interfaceXContentParser- Overrides:
skipChildrenin classFilterXContentParser- Throws:
IOException
-
textOrNull
- Specified by:
textOrNullin interfaceXContentParser- Overrides:
textOrNullin classFilterXContentParser- Throws:
IOException
-
numberValue
- Specified by:
numberValuein interfaceXContentParser- Overrides:
numberValuein classFilterXContentParser- Throws:
IOException
-
booleanValue
- Specified by:
booleanValuein interfaceXContentParser- Overrides:
booleanValuein classFilterXContentParser- Throws:
IOException
-