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

org.dbpedia.extraction.live.publisher.DiffData Maven / Gradle / Ivy

The newest version!
package org.dbpedia.extraction.live.publisher;

import org.dbpedia.extraction.destinations.Quad;

import java.util.HashSet;
import java.util.Set;

/**
 * Holds a diff for a new extraction (called from PublisherDiffDestination)
 */
public class DiffData {

    public final long pageID;
    public final Set toAdd;
    public final Set toDelete;
    public final Set toReInsert;
    public final Set subjects;

    public DiffData(long id, final Set add, final Set delete, final Set toReInsert, final Set subjects){
        pageID = id;
        this.toAdd = new HashSet<>(add);
        this.toDelete = new HashSet<>(delete);
        this.toReInsert = new HashSet<>(toReInsert);
        this.subjects = new HashSet<>(subjects);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy