
com.aconex.scrutineer.elasticsearch.IdAndVersionDataReaderFactory 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.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