Codota Logo
ILSMIndexAccessor.forceInsert
Code IndexAdd Codota to your IDE (free)

How to use
forceInsert
method
in
org.apache.hyracks.storage.am.lsm.common.api.ILSMIndexAccessor

Best Java code snippets using org.apache.hyracks.storage.am.lsm.common.api.ILSMIndexAccessor.forceInsert (Showing top 4 results out of 315)

  • Common ways to obtain ILSMIndexAccessor
private void myMethod () {
ILSMIndexAccessor i =
  • Codota IconILSMIndex iLSMIndex;iLSMIndex.createAccessor(NoOpIndexAccessParameters.INSTANCE)
  • Smart code suggestions by Codota
}
origin: apache/asterixdb

private static void redo(ILogRecord logRecord, IDatasetLifecycleManager datasetLifecycleManager) {
  try {
    int datasetId = logRecord.getDatasetId();
    long resourceId = logRecord.getResourceId();
    ILSMIndex index = (ILSMIndex) datasetLifecycleManager.getIndex(datasetId, resourceId);
    ILSMIndexAccessor indexAccessor = index.createAccessor(NoOpIndexAccessParameters.INSTANCE);
    ILSMIndexOperationContext opCtx = indexAccessor.getOpContext();
    opCtx.setFilterSkip(true);
    opCtx.setRecovery(true);
    if (logRecord.getNewOp() == AbstractIndexModificationOperationCallback.INSERT_BYTE) {
      indexAccessor.forceInsert(logRecord.getNewValue());
    } else if (logRecord.getNewOp() == AbstractIndexModificationOperationCallback.DELETE_BYTE) {
      indexAccessor.forceDelete(logRecord.getNewValue());
    } else if (logRecord.getNewOp() == AbstractIndexModificationOperationCallback.UPSERT_BYTE) {
      // redo, upsert the new value
      indexAccessor.forceUpsert(logRecord.getNewValue());
    } else if (logRecord.getNewOp() == AbstractIndexModificationOperationCallback.FILTER_BYTE) {
      opCtx.setFilterSkip(false);
      indexAccessor.updateFilter(logRecord.getNewValue());
    } else {
      throw new IllegalStateException("Unsupported OperationType: " + logRecord.getNewOp());
    }
  } catch (Exception e) {
    throw new IllegalStateException("Failed to redo", e);
  }
}
origin: apache/asterixdb

  lsmAccessor.insert(tuple);
} else {
  lsmAccessor.forceInsert(tuple);
origin: apache/asterixdb

switch (op) {
  case INSERT:
    indexAccessor.forceInsert(tuple);
    break;
  case DELETE:
origin: apache/asterixdb

lsmAccessor.forceInsert(tuple);
org.apache.hyracks.storage.am.lsm.common.apiILSMIndexAccessorforceInsert

Javadoc

Insert a new tuple (failing if duplicate key entry is found)

Popular methods of ILSMIndexAccessor

  • getOpContext
  • scheduleMerge
    Schedule a merge operation
  • forceDelete
    Force deleting an index entry even if the memory component is full replace the entry if found with a
  • scheduleFlush
    Schedule a flush operation
  • delete
  • insert
  • createSearchCursor
  • forceUpsert
    Force upserting the tuple into the memory component even if it is full
  • scanDiskComponents
    Open the given cursor for scanning all disk components of the primary index. The returned tuple has
  • upsert
  • deleteComponents
    Delete components that match the passed predicate NOTE: This call can only be made when the caller k
  • destroy
  • deleteComponents,
  • destroy,
  • flush,
  • forcePhysicalDelete,
  • merge,
  • scheduleFullMerge,
  • scheduleReplication,
  • search,
  • tryDelete

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now