Exemplo n.º 1
0
 /**
  * Copy the objects corresponding to the specified ids to the end of the Journal.
  *
  * @param resultSet the global row ids
  * @throws com.nfsdb.exceptions.JournalException if there is an error
  */
 public void append(ResultSet<T> resultSet) throws JournalException {
   if (isCompatible(resultSet.getJournal())) {
     for (T obj : resultSet.bufferedIterator()) {
       this.append(obj);
     }
   } else {
     throw new JournalException("%s is incompatible with %s", this, resultSet.getJournal());
   }
 }
Exemplo n.º 2
0
 public void mergeAppend(ResultSet<T> resultSet) throws JournalException {
   mergeAppend(resultSet.bufferedIterator());
 }