Interface FieldPredicate

All Superinterfaces:
org.apache.lucene.util.Accountable, Predicate<String>
All Known Implementing Classes:
FieldPredicate.And

public interface FieldPredicate extends org.apache.lucene.util.Accountable, Predicate<String>
Filter for visible fields.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FieldPredicate
    The default field predicate applied, which doesn't filter anything.

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Method Summary

    Modifier and Type
    Method
    Description
    Modify the MappingMetadata.getSha256() to track any filtering this predicate has performed on the list of fields.
    boolean
    test(String field)
    Should this field be included?

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources, ramBytesUsed

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • ACCEPT_ALL

      static final FieldPredicate ACCEPT_ALL
      The default field predicate applied, which doesn't filter anything. That means that by default get mappings, get index get field mappings and field capabilities API will return every field that's present in the mappings.
  • Method Details