Class FieldView

java.lang.Object
com.yahoo.vespa.documentmodel.FieldView
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DocumentSummary

public class FieldView extends Object implements Serializable
Author:
baldersheim
See Also:
  • Constructor Details

    • FieldView

      public FieldView(String name)
      Creates a view with a name
      Parameters:
      name - Name of the view.
  • Method Details

    • getName

      public String getName()
    • getFields

      public Collection<com.yahoo.document.Field> getFields()
    • get

      public com.yahoo.document.Field get(String name)
    • remove

      public void remove(String name)
    • add

      public FieldView add(com.yahoo.document.Field field)
      This method will add a field to a view. All fields must come from the same document type. Not enforced here.
      Parameters:
      field - The field to add.
      Returns:
      Itself for chaining purposes.
    • add

      public FieldView add(FieldView view)
      This method will join the two views.
      Parameters:
      view - The view to be joined in to this.
      Returns:
      Itself for chaining.