Tabnine Logo
OInvalidIndexEngineIdException
Code IndexAdd Tabnine to your IDE (free)

How to use
OInvalidIndexEngineIdException
in
com.orientechnologies.orient.core.exception

Best Java code snippets using com.orientechnologies.orient.core.exception.OInvalidIndexEngineIdException (Showing top 2 results out of 315)

origin: com.orientechnologies/orientdb-core

private void checkIndexId(final int indexId) throws OInvalidIndexEngineIdException {
 if (indexId < 0 || indexId >= indexEngines.size() || indexEngines.get(indexId) == null) {
  throw new OInvalidIndexEngineIdException("Engine with id " + indexId + " is not registered inside of storage");
 }
}
origin: com.orientechnologies/orientdb-lucene

@Override
protected Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> interpretTxKeyChanges(
  final OTransactionIndexChangesPerKey changes) {
 try {
  return storage.callIndexEngine(false, false, indexId,
    new OIndexEngineCallback<Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry>>() {
     @Override
     public Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> callEngine(OBaseIndexEngine engine) {
      if (((OLuceneSpatialIndexContainer) engine).isLegacy()) {
       return OLuceneSpatialIndex.super.interpretTxKeyChanges(changes);
      } else {
       return interpretAsSpatial(changes.entries);
      }
     }
    });
 } catch (OInvalidIndexEngineIdException e) {
  e.printStackTrace();
 }
 return super.interpretTxKeyChanges(changes);
}
com.orientechnologies.orient.core.exceptionOInvalidIndexEngineIdException

Javadoc

Special type of exception which indicates that invalid index id was passed into storage and index data should be reloaded

Most used methods

  • <init>
  • printStackTrace

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot 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