mirror of https://github.com/apache/lucene.git
add way to get literal string w/o DocValues, add missing override, remove unused name()
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@881333 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
90d04523f4
commit
29109d47ff
|
@ -27,13 +27,14 @@ import java.io.IOException;
|
|||
*
|
||||
**/
|
||||
public class LiteralValueSource extends ValueSource {
|
||||
protected String string;
|
||||
protected final String string;
|
||||
public LiteralValueSource(String string) {
|
||||
this.string = string;
|
||||
}
|
||||
|
||||
protected String name() {
|
||||
return "literal";
|
||||
/** returns the literal value */
|
||||
public String getValue() {
|
||||
return string;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -52,6 +53,7 @@ public class LiteralValueSource extends ValueSource {
|
|||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String description() {
|
||||
return "literal(" + string + ")";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue