com.aconex.scrutineer.elasticsearch.IdAndVersionDataWriterFactory 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.ObjectOutputStream;
import java.io.OutputStream;
import com.aconex.scrutineer.IdAndVersion;
import com.fasterxml.sort.DataWriter;
import com.fasterxml.sort.DataWriterFactory;
public class IdAndVersionDataWriterFactory extends DataWriterFactory {
@Override
public DataWriter constructWriter(OutputStream outputStream) throws IOException {
return new IdAndVersionDataWriter(new ObjectOutputStream(outputStream));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy