Tabnine Logo
UniqueEntryStoreStrategy.queryEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
queryEntries
method
in
org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy

Best Java code snippets using org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy.queryEntries (Showing top 5 results out of 315)

origin: apache/jackrabbit-oak

public Iterable<IndexEntry> queryAll() {
  return strategy.queryEntries(Filter.EMPTY_FILTER, indexName, indexNode, null);
}

origin: apache/jackrabbit-oak

  public Optional<IndexEntry> queryOne(String value) {
    
    Iterable<IndexEntry> results = strategy.queryEntries(Filter.EMPTY_FILTER, indexName, indexNode, Collections.singleton(value));
    if ( !results.iterator().hasNext() ) {
      return Optional.empty();
    }
    
    return Optional.of(results.iterator().next());
  }
}
origin: apache/jackrabbit-oak

@Test
public void queryEntries_some() {
  Iterable<IndexEntry> hits = store.queryEntries(FilterImpl.newTestInstance(), indexName, indexMeta.getNodeState(), Arrays.asList("key1"));
  
  assertThat(hits, containsInAnyOrder(new IndexEntry("/some/node1", "key1")));
}

origin: apache/jackrabbit-oak

@Test
public void queryEntries_none() {
  
  Iterable<IndexEntry> hits = store.queryEntries(FilterImpl.newTestInstance(), indexName, indexMeta.getNodeState(), Arrays.asList("key3"));
  
  assertThat(hits, iterableWithSize(0));
}
origin: apache/jackrabbit-oak

@Test
public void queryEntries_All() {
  
  Iterable<IndexEntry> hits = store.queryEntries(FilterImpl.newTestInstance(), indexName, indexMeta.getNodeState(), null);
  
  assertThat(hits, containsInAnyOrder(new IndexEntry("/some/node1", "key1"), new IndexEntry("/some/node2", "key2")));
}

org.apache.jackrabbit.oak.plugins.index.property.strategyUniqueEntryStoreStrategyqueryEntries

Javadoc

Search for a given set of values, returning IndexEntry results

Popular methods of UniqueEntryStoreStrategy

  • <init>
  • count
  • getIndexNodeName
  • insert
  • query0
  • remove
  • update
  • query

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
  • JList (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
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