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

com.aconex.scrutineer.elasticsearch.IdAndVersionDataWriter Maven / Gradle / Ivy

package com.aconex.scrutineer.elasticsearch;

import java.io.IOException;
import java.io.ObjectOutputStream;

import com.aconex.scrutineer.IdAndVersion;
import com.fasterxml.sort.DataWriter;

class IdAndVersionDataWriter extends DataWriter {
    private final ObjectOutputStream objectOutputStream;

    public IdAndVersionDataWriter(ObjectOutputStream objectOutputStream) {
        this.objectOutputStream = objectOutputStream;
    }

    @Override
    public void writeEntry(IdAndVersion item) throws IOException {
        item.writeToStream(objectOutputStream);
    }

    @Override
    public void close() throws IOException {
        objectOutputStream.close();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy