Tabnine Logo
ILSMIndexAccessor.createSearchCursor
Code IndexAdd Tabnine to your IDE (free)

How to use
createSearchCursor
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.createSearchCursor (Showing top 2 results out of 315)

origin: apache/asterixdb

public void open() throws HyracksDataException {
  // Open the index and get the instance
  indexDataflowHelper.open();
  index = (ExternalBTree) indexDataflowHelper.getIndexInstance();
  // Create search key and search predicate objects
  searchKey = new ArrayTupleReference();
  searchKeyTupleBuilder = new ArrayTupleBuilder(FilesIndexDescription.FILE_KEY_SIZE);
  searchKeyTupleBuilder.reset();
  searchKeyTupleBuilder.addField(intSerde, currentFileNumber);
  searchKey.reset(searchKeyTupleBuilder.getFieldEndOffsets(), searchKeyTupleBuilder.getByteArray());
  MultiComparator searchCmp = BTreeUtils.getSearchMultiComparator(index.getComparatorFactories(), searchKey);
  searchPredicate = new RangePredicate(searchKey, searchKey, true, true, searchCmp, searchCmp);
  // create the accessor  and the cursor using the passed version
  ISearchOperationCallback searchCallback = searchCallbackFactory
      .createSearchOperationCallback(indexDataflowHelper.getResource().getId(), ctx, null);
  fileIndexAccessor = index.createAccessor(searchCallback, version);
  fileIndexSearchCursor = fileIndexAccessor.createSearchCursor(false);
}
origin: apache/asterixdb

Assert.assertEquals("Check disk components", 3, btree.getDiskComponents().size());
IIndexCursor cursor = accessor.createSearchCursor(false);
accessor.scanDiskComponents(cursor);
org.apache.hyracks.storage.am.lsm.common.apiILSMIndexAccessorcreateSearchCursor

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
  • forceInsert
    Insert a new tuple (failing if duplicate key entry is found)
  • scheduleFlush
    Schedule a flush operation
  • delete
  • insert
  • 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
  • getApplicationContext (Context)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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