congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LeafWithNoDescriptors.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
rocks.inspectit.shared.cs.indexing.storage.impl.LeafWithNoDescriptors

Best Java code snippets using rocks.inspectit.shared.cs.indexing.storage.impl.LeafWithNoDescriptors.getId (Showing top 1 results out of 315)

origin: inspectIT/inspectIT

/**
 * Test the creation of new component when leaf should be created.
 */
@Test
public void nextComponentIsLeaf() {
  int id = 1;
  storageBranchIndexer = new StorageBranchIndexer<>(delegateIndexer, null, id, true);
  DefaultData defaultData = mock(DefaultData.class);
  InvocationSequenceData invocationSequenceData = mock(InvocationSequenceData.class);
  // first pass id
  IStorageTreeComponent<DefaultData> component = storageBranchIndexer.getNextTreeComponent(defaultData);
  assertThat(component, is(instanceOf(LeafWithNoDescriptors.class)));
  LeafWithNoDescriptors<DefaultData> leaf = (LeafWithNoDescriptors<DefaultData>) component;
  assertThat(leaf.getId(), is(id));
  component = storageBranchIndexer.getNextTreeComponent(invocationSequenceData);
  assertThat(component, is(instanceOf(ArrayBasedStorageLeaf.class)));
  ArrayBasedStorageLeaf<DefaultData> arrayLeaf = (ArrayBasedStorageLeaf<DefaultData>) component;
  assertThat(arrayLeaf.getId(), is(id));
  storageBranchIndexer = new StorageBranchIndexer<>(delegateIndexer, null, id, false);
  // then don't pass id
  component = storageBranchIndexer.getNextTreeComponent(defaultData);
  assertThat(component, is(instanceOf(LeafWithNoDescriptors.class)));
  leaf = (LeafWithNoDescriptors<DefaultData>) component;
  assertThat(leaf.getId(), is(not(id)));
  component = storageBranchIndexer.getNextTreeComponent(invocationSequenceData);
  assertThat(component, is(instanceOf(ArrayBasedStorageLeaf.class)));
  arrayLeaf = (ArrayBasedStorageLeaf<DefaultData>) component;
  assertThat(arrayLeaf.getId(), is(not(id)));
}
rocks.inspectit.shared.cs.indexing.storage.implLeafWithNoDescriptorsgetId

Javadoc

Gets #id.

Popular methods of LeafWithNoDescriptors

  • <init>
    Secondary constructor. Assigns the leaf with the ID.
  • getTaskForForkJoinQuery
  • optimiseDescriptors
    Optimizes the list of the descriptors so that necessary joining is done. This method will also assur
  • put
  • query

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTable (javax.swing)
  • Top PhpStorm plugins
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