All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aconex.scrutineer.javautil.JavaIteratorIdAndVersionStream Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 7.9.3
Show newest version
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