
com.aconex.scrutineer.javautil.JavaIteratorIdAndVersionStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scrutineer Show documentation
Show all versions of scrutineer Show documentation
Compares 2 streams of Ids and Versions to prove that a secondary source is
in sync with a primary source of truth. Designed to verify an elasticsearch
cluster contains correct information from a JDBC source.
package com.aconex.scrutineer.javautil;
import com.aconex.scrutineer.IdAndVersion;
import com.aconex.scrutineer.IdAndVersionStream;
import java.util.Iterator;
public class JavaIteratorIdAndVersionStream implements IdAndVersionStream
{
private final Iterator iterator;
public JavaIteratorIdAndVersionStream(Iterator iterator) {
this.iterator = iterator;
}
@Override
public void open() {
//Empty
}
@Override
public Iterator iterator() {
return this.iterator;
}
@Override
public void close() {
//Empty
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy