Interface Hit.RawUtf8Consumer

All Superinterfaces:
BiConsumer<String,Object>
All Known Implementing Classes:
JsonRenderer.FieldConsumer
Enclosing class:
Hit

public static interface Hit.RawUtf8Consumer extends BiConsumer<String,Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(String fieldName, byte[] utf8Data, int offset, int length)
    Called for fields which are available as UTF-8 instead of accept(String, Object).

    Methods inherited from interface java.util.function.BiConsumer

    accept, andThen
  • Method Details

    • accept

      void accept(String fieldName, byte[] utf8Data, int offset, int length)
      Called for fields which are available as UTF-8 instead of accept(String, Object).
      Parameters:
      fieldName - the name of the field
      utf8Data - raw utf-8 data. The receiver must not modify this data
      offset - the start index in the utf8Data array of the data to accept
      length - the length starting from offset in the utf8Data array of the data to accept