Examples of BDBRecordIterator


Examples of org.archive.wayback.bdb.BDBRecordIterator

   * @param surt
   * @return String representation of rules
   * @throws DatabaseException
   */
  public ArrayList<AdministrativeExclusionRules> matchRules(String surt) throws DatabaseException {
    BDBRecordIterator itr = db.recordIterator(surt);
    ArrayList<AdministrativeExclusionRules> matching =
      new ArrayList<AdministrativeExclusionRules>();
    while(itr.hasNext()) {
      BDBRecord record = (BDBRecord) itr.next();
      AdministrativeExclusionRules rules = recordToRules(record);
      if(rules.getSurtPrefix().startsWith(surt)) {
        matching.add(rules);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.