Tabnine Logo
FSTEnum.grow
Code IndexAdd Tabnine to your IDE (free)

How to use
grow
method
in
org.apache.lucene.util.fst.FSTEnum

Best Java code snippets using org.apache.lucene.util.fst.FSTEnum.grow (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-core

private void incr() {
 upto++;
 grow();
 if (arcs.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final FST.Arc<T>[] newArcs =
   new FST.Arc[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(arcs, 0, newArcs, 0, arcs.length);
  arcs = newArcs;
 }
 if (output.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final T[] newOutput =
   (T[]) new Object[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(output, 0, newOutput, 0, output.length);
  output = newOutput;
 }
}
origin: org.infinispan/infinispan-embedded-query

private void incr() {
 upto++;
 grow();
 if (arcs.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final FST.Arc<T>[] newArcs =
   new FST.Arc[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(arcs, 0, newArcs, 0, arcs.length);
  arcs = newArcs;
 }
 if (output.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final T[] newOutput =
   (T[]) new Object[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(output, 0, newOutput, 0, output.length);
  output = newOutput;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

private void incr() {
 upto++;
 grow();
 if (arcs.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final FST.Arc<T>[] newArcs =
   new FST.Arc[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(arcs, 0, newArcs, 0, arcs.length);
  arcs = newArcs;
 }
 if (output.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final T[] newOutput =
   (T[]) new Object[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(output, 0, newOutput, 0, output.length);
  output = newOutput;
 }
}
origin: harbby/presto-connectors

private void incr() {
 upto++;
 grow();
 if (arcs.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final FST.Arc<T>[] newArcs =
   new FST.Arc[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(arcs, 0, newArcs, 0, arcs.length);
  arcs = newArcs;
 }
 if (output.length <= upto) {
  @SuppressWarnings({"rawtypes","unchecked"}) final T[] newOutput =
   (T[]) new Object[ArrayUtil.oversize(1+upto, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(output, 0, newOutput, 0, output.length);
  output = newOutput;
 }
}
org.apache.lucene.util.fstFSTEnumgrow

Popular methods of FSTEnum

  • doSeekCeil
    Seeks to smallest term that's >= target.
  • doSeekExact
    Seeks to exactly target term.
  • doSeekFloor
    Seeks to largest term that's <= target.
  • getArc
  • getCurrentLabel
  • getTargetLabel
  • incr
  • pushFirst
  • pushLast
  • rewindPrefix
    Rewinds enum state to match the shared prefix between current term and target term
  • setCurrentLabel
  • setCurrentLabel

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • BoxLayout (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
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