Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class IgnoredSourceFieldMapper.SingularIgnoredSourceEncoding
java.lang.Object
org.elasticsearch.index.mapper.IgnoredSourceFieldMapper.SingularIgnoredSourceEncoding
- Enclosing class:
IgnoredSourceFieldMapper
Encodes/decodes a single ignored field/value pair to/from a
BytesRef blob.
The blob itself is of the following format: [header][field name][value] where:
headeris a little-endianint32that packsfield-name.lengthand the parent offsetfield nameis the full field path, as UTF-8 bytesvalueis the ignored value encoded byXContentDataHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeAsMap(org.apache.lucene.util.BytesRef value) static org.apache.lucene.util.BytesRefstatic org.apache.lucene.util.BytesRefencodeFromMap(IgnoredSourceFieldMapper.MappedNameValue mappedNameValue)
-
Constructor Details
-
SingularIgnoredSourceEncoding
public SingularIgnoredSourceEncoding()
-
-
Method Details
-
encode
-
decode
-
encodeFromMap
public static org.apache.lucene.util.BytesRef encodeFromMap(IgnoredSourceFieldMapper.MappedNameValue mappedNameValue) throws IOException - Throws:
IOException
-
decodeAsMap
public static IgnoredSourceFieldMapper.MappedNameValue decodeAsMap(org.apache.lucene.util.BytesRef value) throws IOException - Throws:
IOException
-