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

How to use
removeIterator
method
in
org.apache.accumulo.core.client.admin.TableOperations

Best Java code snippets using org.apache.accumulo.core.client.admin.TableOperations.removeIterator (Showing top 14 results out of 315)

origin: prestodb/presto

public void setIterator(String table, IteratorSetting setting)
{
  try {
    // Remove any existing iterator settings of the same name, if applicable
    Map<String, EnumSet<IteratorScope>> iterators = connector.tableOperations().listIterators(table);
    if (iterators.containsKey(setting.getName())) {
      connector.tableOperations().removeIterator(table, setting.getName(), iterators.get(setting.getName()));
    }
    connector.tableOperations().attachIterator(table, setting);
  }
  catch (AccumuloSecurityException | AccumuloException e) {
    throw new PrestoException(UNEXPECTED_ACCUMULO_ERROR, "Failed to set iterator on table " + table, e);
  }
  catch (TableNotFoundException e) {
    throw new PrestoException(ACCUMULO_TABLE_DNE, "Failed to set iterator, table does not exist", e);
  }
}
origin: apache/accumulo

} else if (tables) {
 shellState.getAccumuloClient().tableOperations()
   .removeIterator(OptUtil.getTableOpt(cl, shellState), name, scopes);
} else {
 throw new IllegalArgumentException("No table or namespace specified");
origin: Accla/graphulo

 public void RemoveIterator(String table, IteratorSetting itset) throws AccumuloSecurityException, AccumuloException, TableNotFoundException {
//    try {
   connector.tableOperations().removeIterator(table, itset.getName(), EnumSet.allOf(IteratorUtil.IteratorScope.class));
//    } catch (AccumuloSecurityException | AccumuloException | TableNotFoundException e) {
//      log.error("Problem removing iterator "+itset+" from table "+table, e);
//    }
 }

origin: Accla/graphulo

 public void removeIterator(String tableName, String name, EnumSet<IteratorUtil.IteratorScope> scopes) throws D4mException
 {
   TableOperations tops = this.connector.tableOperations();
   try {
     tops.removeIterator(tableName, name, scopes);
   } catch (AccumuloSecurityException | AccumuloException | TableNotFoundException e) {
     log.warn("",e);
     throw new D4mException(e);
   }
}
origin: NationalSecurityAgency/timely

private void removeAgeOffIterators(Connector con, String tableName) throws Exception {
  Map<String, EnumSet<IteratorScope>> iters = con.tableOperations().listIterators(tableName);
  for (String name : iters.keySet()) {
    if (name.startsWith("ageoff")) {
      con.tableOperations().removeIterator(tableName, name, AGEOFF_SCOPES);
    }
  }
}
origin: org.apache.accumulo/accumulo-shell

} else if (tables) {
 shellState.getConnector().tableOperations()
   .removeIterator(OptUtil.getTableOpt(cl, shellState), name, scopes);
} else {
 throw new IllegalArgumentException("No table or namespace specified");
origin: org.apache.accumulo/accumulo-proxy

@Override
public void removeIterator(ByteBuffer login, String tableName, String iterName,
  Set<org.apache.accumulo.proxy.thrift.IteratorScope> scopes)
  throws org.apache.accumulo.proxy.thrift.AccumuloException,
  org.apache.accumulo.proxy.thrift.AccumuloSecurityException,
  org.apache.accumulo.proxy.thrift.TableNotFoundException, TException {
 try {
  getConnector(login).tableOperations().removeIterator(tableName, iterName,
    getIteratorScopes(scopes));
 } catch (Exception e) {
  handleExceptionTNF(e);
 }
}
origin: uk.gov.gchq.gaffer/accumulo-store

/**
 * This method takes a store and the name of an iterator to be
 * removed.
 *
 * @param store        the accumulo store
 * @param iteratorName the name of the iterator update
 * @throws StoreException if any issues occur when updating the iterator
 */
public static void removeIterator(final AccumuloStore store, final String iteratorName) throws StoreException {
  try {
    if (store.getConnection().tableOperations().listIterators(store.getTableName()).containsKey(iteratorName)) {
      store.getConnection()
          .tableOperations()
          .removeIterator(store.getTableName(), iteratorName,
              EnumSet.of(IteratorScope.majc, IteratorScope.minc, IteratorScope.scan));
    }
  } catch (final AccumuloSecurityException | AccumuloException | TableNotFoundException | StoreException e) {
    throw new StoreException("Unable remove iterator with Name: " + iteratorName, e);
  }
}
origin: NationalSecurityAgency/datawave

tops.removeIterator(tableName, iteratorConfig.getIteratorName(), existingScopes);
exists = false;
origin: org.apache.accumulo/accumulo-test

c.tableOperations().removeIterator(tableName, BadIterator.class.getSimpleName(),
  EnumSet.of(IteratorScope.minc));
origin: NationalSecurityAgency/datawave

        IteratorUtil.IteratorScope.scan);
if (existingSetting == null || !existingSetting.equals(ageoffConfig)) {
  connector.tableOperations().removeIterator(tableName, AgeOffFilter.class.getSimpleName(), EnumSet.allOf(IteratorUtil.IteratorScope.class));
  try {
    connector.tableOperations().attachIterator(tableName, ageoffConfig, EnumSet.allOf(IteratorUtil.IteratorScope.class));
origin: Accla/graphulo

 connector.tableOperations().removeIterator(tmp1, plusCombiner.getName(), EnumSet.allOf(IteratorUtil.IteratorScope.class));
} catch (AccumuloException | AccumuloSecurityException e) {
 log.error("problem while removing " + plusCombiner + " from "+tmp1, e);
origin: uk.gov.gchq.gaffer/accumulo-store

connector.tableOperations().removeIterator(tableName, "vers", iteratorScopes);
origin: org.apache.accumulo/accumulo-test

 break;
case 26:
 ops.removeIterator(tableName, "a", EnumSet.of(IteratorScope.scan));
 fail();
 break;
org.apache.accumulo.core.client.adminTableOperationsremoveIterator

Javadoc

Remove an iterator from a table by name.

Popular methods of TableOperations

  • create
  • exists
    A method to check if a table exists in Accumulo.
  • delete
    Delete a table
  • attachIterator
    Add an iterator to a table on the given scopes.
  • setProperty
    Sets a property on a table. This operation is asynchronous and eventually consistent. Not all tablet
  • addSplits
    Ensures that tablets are split along a set of keys. Note that while the documentation for Text speci
  • list
    Retrieve a list of tables in Accumulo.
  • tableIdMap
    Get a mapping of table name to internal table id.
  • listIterators
    Get a list of iterators for this table.
  • listSplits
  • compact
    Starts a full major compaction of the tablets in the range (start, end]. The compaction is preformed
  • flush
    Flush a table's data that is currently in memory.
  • compact,
  • flush,
  • getProperties,
  • setLocalityGroups,
  • deleteRows,
  • getIteratorSetting,
  • importDirectory,
  • testClassLoad,
  • getLocalityGroups

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • startActivity (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Notification (javax.management)
  • 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