Codota Logo
ClientSideIteratorScanner
Code IndexAdd Codota to your IDE (free)

How to use
ClientSideIteratorScanner
in
org.apache.accumulo.core.client

Best Java code snippets using org.apache.accumulo.core.client.ClientSideIteratorScanner (Showing top 18 results out of 315)

  • Common ways to obtain ClientSideIteratorScanner
private void myMethod () {
ClientSideIteratorScanner c =
  • Codota IconScanner scanner;new ClientSideIteratorScanner(scanner)
  • Smart code suggestions by Codota
}
origin: apache/accumulo

@Override
public Authorizations getAuthorizations() {
 return ClientSideIteratorScanner.this.getAuthorizations();
}
origin: apache/accumulo

 smi.scanner.disableIsolation();
smi.samplerConfig = getSamplerConfiguration();
try {
 skvi = IteratorUtil.loadIterators(smi, tm.values(), serverSideIteratorOptions,
   new ClientSideIteratorEnvironment(getSamplerConfiguration() != null,
     getIteratorSamplerConfigurationInternal()),
   false, null);
} catch (IOException e) {
for (Column c : this.getFetchedColumns()) {
 colfs.add(new ArrayByteSequence(c.getColumnFamily()));
origin: apache/accumulo

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-test

final ClientSideIteratorScanner csis = new ClientSideIteratorScanner(scanner);
final IteratorSetting si = new IteratorSetting(10, "localvers", VersioningIterator.class);
si.addOption("maxVersions", "2");
csis.addScanIterator(si);
csis.fetchColumnFamily(new Text("colf"));
checkResults(csis, resultSet1, PartialKey.ROW_COLFAM_COLQUAL_COLVIS_TIME);
csis.clearColumns();
csis.fetchColumnFamily(new Text("none"));
assertFalse(csis.iterator().hasNext());
origin: org.apache.accumulo/accumulo-test

ClientSideIteratorScanner csiScanner = new ClientSideIteratorScanner(
  conn.createScanner(tableName, Authorizations.EMPTY));
BatchScanner bScanner = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);
csiScanner.setIteratorSamplerConfiguration(SC1);
csiScanner.setIteratorSamplerConfiguration(SC2);
origin: org.apache.accumulo/accumulo-test

@Test
public void testIntersect() throws Exception {
 conn.tableOperations().create(tableName);
 BatchWriter bw = conn.createBatchWriter(tableName, new BatchWriterConfig());
 Mutation m = new Mutation("part1");
 m.put("bar", "doc1", "value");
 m.put("bar", "doc2", "value");
 m.put("dog", "doc3", "value");
 m.put("foo", "doc2", "value");
 m.put("foo", "doc3", "value");
 bw.addMutation(m);
 m = new Mutation("part2");
 m.put("bar", "DOC1", "value");
 m.put("bar", "DOC2", "value");
 m.put("dog", "DOC3", "value");
 m.put("foo", "DOC2", "value");
 m.put("foo", "DOC3", "value");
 bw.addMutation(m);
 bw.flush();
 final ClientSideIteratorScanner csis = new ClientSideIteratorScanner(
   conn.createScanner(tableName, new Authorizations()));
 final IteratorSetting si = new IteratorSetting(10, tableName, IntersectingIterator.class);
 IntersectingIterator.setColumnFamilies(si, new Text[] {new Text("bar"), new Text("foo")});
 csis.addScanIterator(si);
 checkResults(csis, resultSet3, PartialKey.ROW_COLFAM_COLQUAL);
}
origin: apache/accumulo

scanner = new ClientSideIteratorScanner(scanner);
origin: Accla/graphulo

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-core

 smi.scanner.disableIsolation();
smi.samplerConfig = getSamplerConfiguration();
try {
 skvi = IteratorUtil.loadIterators(smi, tm.values(), serverSideIteratorOptions,
   new ClientSideIteratorEnvironment(getSamplerConfiguration() != null,
     getIteratorSamplerConfigurationInternal()),
   false, null);
} catch (IOException e) {
for (Column c : this.getFetchedColumns()) {
 colfs.add(new ArrayByteSequence(c.getColumnFamily()));
origin: org.apache.accumulo/accumulo-core

@Override
public Authorizations getAuthorizations() {
 return ClientSideIteratorScanner.this.getAuthorizations();
}
origin: org.apache.accumulo/accumulo-test

Scanner csiScanner = new ClientSideIteratorScanner(
  conn.createScanner(tableName, Authorizations.EMPTY));
scanner.setSamplerConfiguration(SC1);
origin: org.apache.accumulo/accumulo-client-mapreduce

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-hadoop-mapreduce

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-hadoop-mapreduce

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-client-mapreduce

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-core

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-core

scanner = new ClientSideIteratorScanner(scanner);
origin: org.apache.accumulo/accumulo-test

Scanner isoScanner = new IsolatedScanner(conn.createScanner(tableName, Authorizations.EMPTY));
isoScanner.setBatchSize(10);
Scanner csiScanner = new ClientSideIteratorScanner(
  conn.createScanner(tableName, Authorizations.EMPTY));
BatchScanner bScanner = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);
org.apache.accumulo.core.clientClientSideIteratorScanner

Javadoc

A scanner that instantiates iterators on the client side instead of on the tablet server. This can be useful for testing iterators or in cases where you don't want iterators affecting the performance of tablet servers.

Suggested usage:

 
 
Scanner scanner = client.createScanner(tableName, authorizations); 
scanner = new ClientSideIteratorScanner(scanner); 
 

Iterators added to this scanner will be run in the client JVM. Separate scan iterators can be run on the server side and client side by adding iterators to the source scanner (which will execute server side) and to the client side scanner (which will execute client side).

Most used methods

  • <init>
    Constructs a scanner that can execute client-side iterators.
  • addScanIterator
  • clearColumns
  • fetchColumnFamily
  • getAuthorizations
  • getFetchedColumns
  • getIteratorSamplerConfigurationInternal
  • getSamplerConfiguration
  • getTimeout
  • iterator
  • setIteratorSamplerConfiguration
    This is provided for the case where no sampler configuration is set on the scanner, but there is a n
  • setSamplerConfiguration
  • setIteratorSamplerConfiguration,
  • setSamplerConfiguration,
  • setTimeout

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • onCreateOptionsMenu (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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