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

com.aconex.scrutineer.elasticsearch.IdAndVersionDataReaderFactory 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: 3.0.0
Show newest version
package com.aconex.scrutineer.elasticsearch;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;

import com.aconex.scrutineer.IdAndVersion;
import com.aconex.scrutineer.IdAndVersionFactory;
import com.fasterxml.sort.DataReader;
import com.fasterxml.sort.DataReaderFactory;

public class IdAndVersionDataReaderFactory extends DataReaderFactory {

	private final IdAndVersionFactory factory;

	public IdAndVersionDataReaderFactory(IdAndVersionFactory factory) {
		this.factory = factory;
	}

    @Override
    public DataReader constructReader(final InputStream inputStream) throws IOException {
        return new IdAndVersionDataReader(factory, new ObjectInputStream(inputStream));

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy