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

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

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

origin: apache/accumulo

@Override
public void seek(final Range range, final Collection<ByteSequence> columnFamilies,
  final boolean inclusive) throws IOException {
 if (!inclusive && columnFamilies.size() > 0) {
  throw new IllegalArgumentException();
 }
 scanner.setRange(range);
 scanner.clearColumns();
 for (ByteSequence colf : columnFamilies) {
  scanner.fetchColumnFamily(new Text(colf.toArray()));
 }
 if (samplerConfig == null) {
  scanner.clearSamplerConfiguration();
 } else {
  scanner.setSamplerConfiguration(samplerConfig);
 }
 iter = scanner.iterator();
 next();
}
origin: apache/accumulo

scanner.clearColumns();
scanner.setRange(MetadataSchema.DeletesSection.getRange());
origin: apache/accumulo

@Override
public long isReady(long tid, Master master) throws Exception {
 long reserved = Utils.reserveNamespace(master, tableInfo.namespaceID, tid, false, true,
   TableOperation.EXPORT)
   + Utils.reserveTable(master, tableInfo.tableID, tid, false, true, TableOperation.EXPORT);
 if (reserved > 0)
  return reserved;
 AccumuloClient client = master.getContext();
 checkOffline(master.getContext());
 Scanner metaScanner = client.createScanner(MetadataTable.NAME, Authorizations.EMPTY);
 metaScanner.setRange(new KeyExtent(tableInfo.tableID, null, null).toMetadataRange());
 // scan for locations
 metaScanner.fetchColumnFamily(TabletsSection.CurrentLocationColumnFamily.NAME);
 metaScanner.fetchColumnFamily(TabletsSection.FutureLocationColumnFamily.NAME);
 if (metaScanner.iterator().hasNext()) {
  return 500;
 }
 // use the same range to check for walogs that we used to check for hosted (or future hosted)
 // tablets
 // this is done as a separate scan after we check for locations, because walogs are okay only if
 // there is no location
 metaScanner.clearColumns();
 metaScanner.fetchColumnFamily(LogColumnFamily.NAME);
 if (metaScanner.iterator().hasNext()) {
  throw new AcceptableThriftTableOperationException(tableInfo.tableID.canonicalID(),
    tableInfo.tableName, TableOperation.EXPORT, TableOperationExceptionType.OTHER,
    "Write ahead logs found for table");
 }
 return 0;
}
origin: apache/accumulo

ms.clearColumns();
origin: apache/fluo

NotificationScanner(Scanner scanner, Predicate<RowColumnValue> filter) {
 scanner.clearColumns();
 Notification.configureScanner(scanner);
 this.scanner = scanner;
 this.filter = filter;
}
origin: ucbrise/anna

/**
 * Gets a scanner from Accumulo over one row.
 *
 * @param row the row to scan
 * @param fields the set of columns to scan
 * @return an Accumulo {@link Scanner} bound to the given row and columns
 */
private Scanner getRow(Text row, Set<String> fields) {
 singleScanner.clearColumns();
 singleScanner.setRange(new Range(row));
 if (fields != null) {
  for (String field : fields) {
   singleScanner.fetchColumn(colFam, new Text(field));
  }
 }
 return singleScanner;
}
origin: org.apache.accumulo/accumulo-test

public void verifyRow(Scanner scanner, String row) throws Exception {
 scanner.clearColumns();
 scanner.fetchColumnFamily(Write.CONTENT_COLUMN_FAMILY);
 scanner.fetchColumn(Write.META_COLUMN_FAMILY, Write.SHA1_COLUMN_QUALIFIER);
origin: org.apache.accumulo/accumulo-core

@Override
public void seek(final Range range, final Collection<ByteSequence> columnFamilies,
  final boolean inclusive) throws IOException {
 if (!inclusive && columnFamilies.size() > 0) {
  throw new IllegalArgumentException();
 }
 scanner.setRange(range);
 scanner.clearColumns();
 for (ByteSequence colf : columnFamilies) {
  scanner.fetchColumnFamily(new Text(colf.toArray()));
 }
 if (samplerConfig == null) {
  scanner.clearSamplerConfiguration();
 } else {
  scanner.setSamplerConfiguration(samplerConfig);
 }
 iter = scanner.iterator();
 next();
}
origin: org.apache.accumulo/accumulo-server-base

scanner.clearColumns();
scanner.setRange(MetadataSchema.DeletesSection.getRange());
origin: org.apache.accumulo/accumulo-test

scanner.clearColumns();
scanner.fetchColumnFamily(BulkPlusOne.MARKER_CF);
RowIterator rowIter = new RowIterator(scanner);
origin: apache/incubator-rya

docTableScan.clearColumns();
origin: org.apache.rya/rya.indexing

docTableScan.clearColumns();
origin: org.apache.accumulo/accumulo-server

@Override
public long isReady(long tid, Master master) throws Exception {
 long reserved = Utils.reserveTable(tableInfo.tableID, tid, false, true, TableOperation.EXPORT);
 if (reserved > 0)
  return reserved;
 Connector conn = master.getConnector();
 checkOffline(conn);
 Scanner metaScanner = conn.createScanner(Constants.METADATA_TABLE_NAME, Constants.NO_AUTHS);
 metaScanner.setRange(new KeyExtent(new Text(tableInfo.tableID), null, null).toMetadataRange());
 // scan for locations
 metaScanner.fetchColumnFamily(Constants.METADATA_CURRENT_LOCATION_COLUMN_FAMILY);
 metaScanner.fetchColumnFamily(Constants.METADATA_FUTURE_LOCATION_COLUMN_FAMILY);
 if (metaScanner.iterator().hasNext()) {
  return 500;
 }
 // use the same range to check for walogs that we used to check for hosted (or future hosted) tablets
 // this is done as a separate scan after we check for locations, because walogs are okay only if there is no location
 metaScanner.clearColumns();
 metaScanner.fetchColumnFamily(Constants.METADATA_LOG_COLUMN_FAMILY);
 if (metaScanner.iterator().hasNext()) {
  throw new ThriftTableOperationException(tableInfo.tableID, tableInfo.tableName, TableOperation.EXPORT, TableOperationExceptionType.OTHER,
    "Write ahead logs found for table");
 }
 return 0;
}
origin: apache/fluo

private void setUpIterator() {
 Scanner scanner;
 try {
  scanner = env.getAccumuloClient().createScanner(env.getTable(), env.getAuthorizations());
 } catch (TableNotFoundException e) {
  throw new RuntimeException(e);
 }
 scanner.clearColumns();
 scanner.clearScanIterators();
 scanner.setRange(SpanUtil.toRange(snapIterConfig.getSpan()));
 setupScanner(scanner, snapIterConfig.getColumns(), startTs, snapIterConfig.showReadLocks);
 this.iterator = scanner.iterator();
}
origin: org.apache.fluo/fluo-core

private void setUpIterator() {
 Scanner scanner;
 try {
  scanner = env.getConnector().createScanner(env.getTable(), env.getAuthorizations());
 } catch (TableNotFoundException e) {
  throw new RuntimeException(e);
 }
 scanner.clearColumns();
 scanner.clearScanIterators();
 scanner.setRange(SpanUtil.toRange(snapIterConfig.getSpan()));
 setupScanner(scanner, snapIterConfig.getColumns(), startTs, snapIterConfig.showReadLocks);
 this.iterator = scanner.iterator();
}
origin: io.fluo/fluo-core

private void setUpIterator() {
 Scanner scanner;
 try {
  scanner = env.getConnector().createScanner(env.getTable(), env.getAuthorizations());
 } catch (TableNotFoundException e) {
  throw new RuntimeException(e);
 }
 scanner.clearColumns();
 scanner.clearScanIterators();
 scanner.setRange(SpanUtil.toRange(config.getSpan()));
 setupScanner(scanner, config.getColumns(), startTs);
 this.iterator = scanner.iterator();
}
origin: org.apache.accumulo/accumulo-test

scanner.clearColumns();
scanner.setBatchSize(3);
scanner.fetchColumnFamily(new Text(String.format("%03d", 1)));
origin: org.apache.accumulo/accumulo-master

@Override
public long isReady(long tid, Master master) throws Exception {
 long reserved = Utils.reserveNamespace(tableInfo.namespaceID, tid, false, true,
   TableOperation.EXPORT)
   + Utils.reserveTable(tableInfo.tableID, tid, false, true, TableOperation.EXPORT);
 if (reserved > 0)
  return reserved;
 Connector conn = master.getConnector();
 checkOffline(conn);
 Scanner metaScanner = conn.createScanner(MetadataTable.NAME, Authorizations.EMPTY);
 metaScanner.setRange(new KeyExtent(tableInfo.tableID, null, null).toMetadataRange());
 // scan for locations
 metaScanner.fetchColumnFamily(TabletsSection.CurrentLocationColumnFamily.NAME);
 metaScanner.fetchColumnFamily(TabletsSection.FutureLocationColumnFamily.NAME);
 if (metaScanner.iterator().hasNext()) {
  return 500;
 }
 // use the same range to check for walogs that we used to check for hosted (or future hosted)
 // tablets
 // this is done as a separate scan after we check for locations, because walogs are okay only if
 // there is no location
 metaScanner.clearColumns();
 metaScanner.fetchColumnFamily(LogColumnFamily.NAME);
 if (metaScanner.iterator().hasNext()) {
  throw new AcceptableThriftTableOperationException(tableInfo.tableID, tableInfo.tableName,
    TableOperation.EXPORT, TableOperationExceptionType.OTHER,
    "Write ahead logs found for table");
 }
 return 0;
}
origin: org.apache.accumulo/accumulo-server

ms.clearColumns();
origin: org.apache.accumulo/accumulo-server-base

ms.clearColumns();
org.apache.accumulo.core.clientScannerclearColumns

Popular methods of Scanner

  • setRange
    Sets the range of keys to scan over.
  • iterator
  • fetchColumnFamily
  • addScanIterator
  • close
  • fetchColumn
  • 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.
  • enableIsolation
    Enables row isolation. Writes that occur to a row after a scan of that row has begun will not be see
  • getRange,
  • enableIsolation,
  • getBatchSize,
  • setBatchTimeout,
  • setClassLoaderContext,
  • setSamplerConfiguration,
  • clearClassLoaderContext,
  • clearSamplerConfiguration,
  • disableIsolation

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ImageIO (javax.imageio)
  • Reference (javax.naming)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text 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