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:
Yonik Seeley 2009-11-17 15:21:17 +00:00
parent 90d04523f4
commit 29109d47ff
1 changed files with 5 additions and 3 deletions

View File

@ -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 + ")";
}