Tabnine Logo
LongValuesSource.rewrite
Code IndexAdd Tabnine to your IDE (free)

How to use
rewrite
method
in
org.apache.lucene.search.LongValuesSource

Best Java code snippets using org.apache.lucene.search.LongValuesSource.rewrite (Showing top 5 results out of 315)

origin: org.apache.lucene/lucene-core

 @Override
 public SortField rewrite(IndexSearcher searcher) throws IOException {
  return new LongValuesSortField(producer.rewrite(searcher), reverse);
 }
}
origin: org.apache.lucene/lucene-core

@Override
public DoubleValuesSource rewrite(IndexSearcher searcher) throws IOException {
 return inner.rewrite(searcher).toDoubleValuesSource();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

 @Override
 public SortField rewrite(IndexSearcher searcher) throws IOException {
  return new LongValuesSortField(producer.rewrite(searcher), reverse);
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public DoubleValuesSource rewrite(IndexSearcher searcher) throws IOException {
 return inner.rewrite(searcher).toDoubleValuesSource();
}
origin: org.apache.lucene/lucene-sandbox

@Override
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException {
 final List<Weight> weights = new ArrayList<>(queries.size());
 for (Query query : queries) {
  weights.add(searcher.createWeight(query, needsScores, boost));
 }
 return new CoveringWeight(this, weights, minimumNumberMatch.rewrite(searcher));
}
org.apache.lucene.searchLongValuesSourcerewrite

Javadoc

Return a LongValuesSource specialised for the given IndexSearcher Implementations should assume that this will only be called once. IndexSearcher-independent implementations can just return this

Popular methods of LongValuesSource

  • getValues
    Returns a LongValues instance for the passed-in LeafReaderContext and scores If scores are not neede
  • isCacheable
  • fromLongField
    Creates a LongValuesSource that wraps a long-valued field
  • needsScores
    Return true if document scores are needed to calculate values
  • toString
  • fromIntField
    Creates a LongValuesSource that wraps an int-valued field
  • toDoubleValuesSource
    Convert to a DoubleValuesSource by casting long values to doubles
  • equals
  • hashCode

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now