org.apache.lucene.expressions
Class Bindings

java.lang.Object
  extended by org.apache.lucene.expressions.Bindings
Direct Known Subclasses:
SimpleBindings

public abstract class Bindings
extends Object

Binds variable names in expressions to actual data.

These are typically DocValues fields/FieldCache, the document's relevance score, or other ValueSources.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Constructor Summary
protected Bindings()
          Sole constructor.
 
Method Summary
protected  ValueSource getScoreValueSource()
          Returns a ValueSource over relevance scores
abstract  ValueSource getValueSource(String name)
          Returns a ValueSource bound to the variable name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bindings

protected Bindings()
Sole constructor. (For invocation by subclass constructors, typically implicit.)

Method Detail

getValueSource

public abstract ValueSource getValueSource(String name)
Returns a ValueSource bound to the variable name.


getScoreValueSource

protected final ValueSource getScoreValueSource()
Returns a ValueSource over relevance scores



Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.