Class Components<TYPE>
java.lang.Object
com.yahoo.vespa.indexinglanguage.expressions.Components<TYPE>
- Direct Known Subclasses:
Components.Ignored,Components.Map
A collection of components of a given type, of which one will be selected by the appropriate ranking expression.
- Author:
- bratseth
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA components instance for environments where no components are available: This will claim to have any component, but will only return a failing instance.static classA component instance backed by a map.static classSelected component of a specific type. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturns whether this contains the given id.failingComponent(String message) Returns a component instance which will fail with the given message if used.abstract TYPEReturns the component with this id, or null if it does not exist.ids()Returns all the known instance id's in this.abstract booleanisEmpty()Returns whether this is empty.Returns the single component selected by this without supplying an id, or empty if an id is required.
-
Method Details
-
ids
Returns all the known instance id's in this. -
isEmpty
public abstract boolean isEmpty()Returns whether this is empty. -
singleSelected
Returns the single component selected by this without supplying an id, or empty if an id is required. -
contains
Returns whether this contains the given id. -
get
Returns the component with this id, or null if it does not exist. -
failingComponent
Returns a component instance which will fail with the given message if used.
-