lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r881333 - /lucene/solr/trunk/src/java/org/apache/solr/search/function/LiteralValueSource.java
Date Tue, 17 Nov 2009 15:21:26 GMT
Author: yonik
Date: Tue Nov 17 15:21:17 2009
New Revision: 881333

URL: http://svn.apache.org/viewvc?rev=881333&view=rev
Log:
add way to get literal string w/o DocValues, add missing override, remove unused name()

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/function/LiteralValueSource.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/function/LiteralValueSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/function/LiteralValueSource.java?rev=881333&r1=881332&r2=881333&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/function/LiteralValueSource.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/function/LiteralValueSource.java Tue
Nov 17 15:21:17 2009
@@ -27,13 +27,14 @@
  *
  **/
 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 @@
     };
   }
 
+  @Override
   public String description() {
     return "literal(" + string + ")";
   }



Mime
View raw message