Class IgnoredSourceFieldMapper.CoalescedIgnoredSourceEncoding

java.lang.Object
org.elasticsearch.index.mapper.IgnoredSourceFieldMapper.CoalescedIgnoredSourceEncoding
Enclosing class:
IgnoredSourceFieldMapper

public static class IgnoredSourceFieldMapper.CoalescedIgnoredSourceEncoding extends Object
Encodes/decodes multiple ignored values for the same field path to/from a BytesRef blob.

Instead of storing one IgnoredSourceFieldMapper.SingularIgnoredSourceEncoding blob per ignored value, all ignored values for a single field path are stored together and the field name is written only once.

The blob itself is of the following format: [count][field name][(parent offset, value)*] where:

  • count is a vInt number of values
  • field name is the full field path, written once as a string
  • each (parent offset, value) pair contains: