Tabnine Logo
Scanner.setClassLoaderContext
Code IndexAdd Tabnine to your IDE (free)

How to use
setClassLoaderContext
method
in
org.apache.accumulo.core.client.Scanner

Best Java code snippets using org.apache.accumulo.core.client.Scanner.setClassLoaderContext (Showing top 5 results out of 315)

origin: apache/accumulo

final Scanner scanner = shellState.getAccumuloClient().createScanner(tableName, auths);
if (classLoaderContext != null) {
 scanner.setClassLoaderContext(classLoaderContext);
origin: org.apache.accumulo/accumulo-test

private void scanCheck(Connector c, String tableName, IteratorSetting cfg, String context,
  String expected) throws Exception {
 Scanner bs = c.createScanner(tableName, Authorizations.EMPTY);
 if (null != context) {
  bs.setClassLoaderContext(context);
 }
 if (null != cfg) {
  bs.addScanIterator(cfg);
 }
 Iterator<Entry<Key,Value>> iterator = bs.iterator();
 for (int i = 0; i < ITERATIONS; i++) {
  assertTrue(iterator.hasNext());
  Entry<Key,Value> next = iterator.next();
  assertEquals(expected, next.getValue().toString());
 }
 assertFalse(iterator.hasNext());
}
origin: org.apache.accumulo/accumulo-shell

final Scanner scanner = shellState.getConnector().createScanner(tableName, auths);
if (null != classLoaderContext) {
 scanner.setClassLoaderContext(classLoaderContext);
origin: org.apache.accumulo/accumulo-test

  "org.apache.accumulo.test.functional.ValueReversingIterator");
one.addScanIterator(cfg);
one.setClassLoaderContext(CONTEXT);
origin: org.apache.accumulo/accumulo-test

  "org.apache.accumulo.test.functional.ValueReversingIterator");
one.addScanIterator(cfg);
one.setClassLoaderContext(CONTEXT);
org.apache.accumulo.core.clientScannersetClassLoaderContext

Popular methods of Scanner

  • setRange
    Sets the range of keys to scan over.
  • iterator
  • fetchColumnFamily
  • addScanIterator
  • close
  • fetchColumn
  • clearColumns
  • setBatchSize
    Sets the number of Key/Value pairs that will be fetched at a time from a tablet server.
  • clearScanIterators
  • setReadaheadThreshold
    Sets the number of batches of Key/Value pairs returned before the Scanner will begin to prefetch the
  • setTimeout
  • getRange
    Returns the range of keys to scan over.
  • setTimeout,
  • getRange,
  • enableIsolation,
  • getBatchSize,
  • setBatchTimeout,
  • setSamplerConfiguration,
  • clearClassLoaderContext,
  • clearSamplerConfiguration,
  • disableIsolation

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JButton (javax.swing)
  • Top plugins for Android Studio
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