Package com.yahoo.vespa.documentmodel
Class FieldView
java.lang.Object
com.yahoo.vespa.documentmodel.FieldView
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DocumentSummary
- Author:
- baldersheim
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(com.yahoo.document.Field field) This method will add a field to a view.This method will join the two views.com.yahoo.document.Field
Collection<com.yahoo.document.Field>
getName()
void
-
Constructor Details
-
FieldView
Creates a view with a name- Parameters:
name
- Name of the view.
-
-
Method Details
-
getName
-
getFields
-
get
-
remove
-
add
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
This method will join the two views.- Parameters:
view
- The view to be joined in to this.- Returns:
- Itself for chaining.
-