Tabnine Logo
SnapshotDeletionPolicy.wrapCommits
Code IndexAdd Tabnine to your IDE (free)

How to use
wrapCommits
method
in
org.apache.lucene.index.SnapshotDeletionPolicy

Best Java code snippets using org.apache.lucene.index.SnapshotDeletionPolicy.wrapCommits (Showing top 12 results out of 315)

origin: org.apache.lucene/lucene-core

@Override
public synchronized void onCommit(List<? extends IndexCommit> commits)
  throws IOException {
 primary.onCommit(wrapCommits(commits));
 lastCommit = commits.get(commits.size() - 1);
}
origin: org.apache.lucene/lucene-core

@Override
public synchronized void onInit(List<? extends IndexCommit> commits)
  throws IOException {
 initCalled = true;
 primary.onInit(wrapCommits(commits));
 for(IndexCommit commit : commits) {
  if (refCounts.containsKey(commit.getGeneration())) {
   indexCommits.put(commit.getGeneration(), commit);
  }
 }
 if (!commits.isEmpty()) {
  lastCommit = commits.get(commits.size() - 1);
 }
}
origin: harbby/presto-connectors

@Override
public synchronized void onCommit(List<? extends IndexCommit> commits)
  throws IOException {
 primary.onCommit(wrapCommits(commits));
 lastCommit = commits.get(commits.size() - 1);
}
origin: org.apache.lucene/lucene-core-jfrog

public synchronized void onCommit(List commits) throws IOException {
 primary.onCommit(wrapCommits(commits));
 lastCommit = (IndexCommit) commits.get(commits.size()-1);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public synchronized void onCommit(List<? extends IndexCommit> commits)
  throws IOException {
 primary.onCommit(wrapCommits(commits));
 lastCommit = commits.get(commits.size() - 1);
}
origin: org.infinispan/infinispan-embedded-query

@Override
public synchronized void onCommit(List<? extends IndexCommit> commits)
  throws IOException {
 primary.onCommit(wrapCommits(commits));
 lastCommit = commits.get(commits.size() - 1);
}
origin: org.apache.lucene/com.springsource.org.apache.lucene

public synchronized void onInit(List commits) throws IOException {
 primary.onInit(wrapCommits(commits));
 lastCommit = (IndexCommit) commits.get(commits.size()-1);
}
origin: org.apache.lucene/lucene-core-jfrog

public synchronized void onInit(List commits) throws IOException {
 primary.onInit(wrapCommits(commits));
 lastCommit = (IndexCommit) commits.get(commits.size()-1);
}
origin: org.apache.lucene/com.springsource.org.apache.lucene

public synchronized void onCommit(List commits) throws IOException {
 primary.onCommit(wrapCommits(commits));
 lastCommit = (IndexCommit) commits.get(commits.size()-1);
}
origin: org.infinispan/infinispan-embedded-query

@Override
public synchronized void onInit(List<? extends IndexCommit> commits)
  throws IOException {
 initCalled = true;
 primary.onInit(wrapCommits(commits));
 for(IndexCommit commit : commits) {
  if (refCounts.containsKey(commit.getGeneration())) {
   indexCommits.put(commit.getGeneration(), commit);
  }
 }
 if (!commits.isEmpty()) {
  lastCommit = commits.get(commits.size() - 1);
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public synchronized void onInit(List<? extends IndexCommit> commits)
  throws IOException {
 initCalled = true;
 primary.onInit(wrapCommits(commits));
 for(IndexCommit commit : commits) {
  if (refCounts.containsKey(commit.getGeneration())) {
   indexCommits.put(commit.getGeneration(), commit);
  }
 }
 if (!commits.isEmpty()) {
  lastCommit = commits.get(commits.size() - 1);
 }
}
origin: harbby/presto-connectors

@Override
public synchronized void onInit(List<? extends IndexCommit> commits)
  throws IOException {
 initCalled = true;
 primary.onInit(wrapCommits(commits));
 for(IndexCommit commit : commits) {
  if (refCounts.containsKey(commit.getGeneration())) {
   indexCommits.put(commit.getGeneration(), commit);
  }
 }
 if (!commits.isEmpty()) {
  lastCommit = commits.get(commits.size() - 1);
 }
}
org.apache.lucene.indexSnapshotDeletionPolicywrapCommits

Javadoc

Wraps each IndexCommit as a SnapshotCommitPoint.

Popular methods of SnapshotDeletionPolicy

  • release
    Release a snapshotted commit.
  • snapshot
    Take a snapshot of the most recent commit to the index. You must call release() to free this snapsho
  • <init>
    Sole constructor, taking the incoming IndexDeletionPolicy to wrap.
  • incRef
    Increments the refCount for this IndexCommit.
  • releaseGen
    Release a snapshot by generation.

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Path (java.nio.file)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JCheckBox (javax.swing)
  • From CI to AI: The AI layer in your organization
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