Package org.apache.accumulo.core.iterators

Examples of org.apache.accumulo.core.iterators.SourceSwitchingIterator$DataSource


  private HashMap<String, DataSource> packages = new HashMap<String, DataSource>();
  private DataSource defaultSource;
 
  @Override
  public Object getProperty(String name) {
    DataSource pack = getPack(name);
    name = fixName(pack,name);
    return pack.getProperty(name);
  }
View Full Code Here


  protected DataSource getPack(String name) {
    if (name == null) return defaultSource;
    String packName = MString.beforeIndex(name, '.');
    if (packName.length() == 0) return defaultSource;
    DataSource pack = packages.get(packName);
    return pack == null ? defaultSource : pack;
  }
View Full Code Here

    return pack == null ? defaultSource : pack;
  }

  @Override
  public boolean isProperty(String name) {
    DataSource pack = getPack(name);
    name = fixName(pack,name);
    return pack.isProperty(name);
  }
View Full Code Here

    return pack.isProperty(name);
  }

  @Override
  public void removeProperty(String name) throws MException {
    DataSource pack = getPack(name);
    name = fixName(pack,name);
    pack.removeProperty(name);
  }
View Full Code Here

    pack.removeProperty(name);
  }

  @Override
  public void setPropertyData(String name, Object value) throws MException {
    DataSource pack = getPack(name);
    name = fixName(pack,name);
    pack.setProperty(name, value);
  }
View Full Code Here

    packages.remove(name);
  }

  @Override
  public boolean isPropertyPossible(String name) {
    DataSource pack = getPack(name);
    name = fixName(pack,name);
    return pack.isPropertyPossible(name);
  }
View Full Code Here

    }
   
    ScanDataSource dataSource = new ScanDataSource(authorizations, this.defaultSecurityLabel, columns, ssiList, ssio, interruptFlag);
   
    try {
      SortedKeyValueIterator<Key,Value> iter = new SourceSwitchingIterator(dataSource);
      return lookup(iter, ranges, columns, results, maxResultSize);
    } catch (IOException ioe) {
      dataSource.close(true);
      throw ioe;
    } finally {
View Full Code Here

       
        SortedKeyValueIterator<Key,Value> iter;
       
        if (options.isolated) {
          if (isolatedIter == null)
            isolatedIter = new SourceSwitchingIterator(dataSource, true);
          else
            isolatedDataSource.fileManager.reattach();
          iter = isolatedIter;
        } else {
          iter = new SourceSwitchingIterator(dataSource, false);
        }
       
        results = nextBatch(iter, range, options.num, options.columnSet);
       
        if (results.results == null) {
View Full Code Here

    }
   
    ScanDataSource dataSource = new ScanDataSource(authorizations, this.defaultSecurityLabel, columns, ssiList, ssio, interruptFlag);
   
    try {
      SortedKeyValueIterator<Key,Value> iter = new SourceSwitchingIterator(dataSource);
      return lookup(iter, ranges, columns, results, maxResultSize);
    } catch (IOException ioe) {
      dataSource.close(true);
      throw ioe;
    } finally {
View Full Code Here

       
        SortedKeyValueIterator<Key,Value> iter;
       
        if (options.isolated) {
          if (isolatedIter == null)
            isolatedIter = new SourceSwitchingIterator(dataSource, true);
          else
            isolatedDataSource.fileManager.reattach();
          iter = isolatedIter;
        } else {
          iter = new SourceSwitchingIterator(dataSource, false);
        }
       
        results = nextBatch(iter, range, options.num, options.columnSet);
       
        if (results.results == null) {
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.iterators.SourceSwitchingIterator$DataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.