Interface FieldSelector.FieldFilter

  • Enclosing class:
    FieldSelector
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @ThreadSafe
    @FunctionalInterface
    public static interface FieldSelector.FieldFilter
    This filter is designed to exclude or rename fields in a document.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.bson.Document apply​(org.bson.Document doc)
      Applies this filter to the given document to exclude or rename fields.
    • Method Detail

      • apply

        org.bson.Document apply​(org.bson.Document doc)
        Applies this filter to the given document to exclude or rename fields.
        Parameters:
        doc - document to exclude or rename fields
        Returns:
        modified document