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

org.rdfhdt.hdt.triples.TriplesPrivate Maven / Gradle / Ivy

package org.rdfhdt.hdt.triples;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import org.rdfhdt.hdt.listener.ProgressListener;
import org.rdfhdt.hdt.options.ControlInfo;
import org.rdfhdt.hdt.util.io.CountInputStream;

public interface TriplesPrivate extends Triples {
	/**
	 * Serializes the triples to an OutputStream
	 * 
	 * @param output
	 *            The OutputStream to save the triples to
	 */
	void save(OutputStream output, ControlInfo ci, ProgressListener listener) throws IOException;

	/**
	 * Loads the structure from an InputStream
	 * 
	 * @param input
	 *            The InputStream to load the file from
	 * @throws IOException
	 */
	void load(InputStream input, ControlInfo ci, ProgressListener listener) throws IOException;

	void mapFromFile(CountInputStream in, File f, ProgressListener listener) throws IOException;
	
	/**
	 * Generates the associated Index
	 * @param listener
	 */
	void generateIndex(ProgressListener listener);
	
	/**
	 * Loads the associated Index from an InputStream
	 * 
	 * @param input
	 *            The InputStream to load the index from
	 * @throws IOException
	 */
	void loadIndex(InputStream input, ControlInfo ci, ProgressListener listener) throws IOException;

	/**
	 * Loads the associated Index from an InputStream
	 * 
	 * @param input
	 *            The InputStream to load the index from
	 * @throws IOException
	 */
	void mapIndex(CountInputStream input, File f, ControlInfo ci, ProgressListener listener) throws IOException;
	
	/**
	 * Saves the associated Index to an OutputStream
	 * 
	 * @param output
	 *            The OutputStream to save the index
	 * @throws IOException
	 */
	void saveIndex(OutputStream output, ControlInfo ci, ProgressListener listener) throws IOException;

	/**
	 * Loads triples from another Triples Structure
	 * 
	 * @param input
	 *            The TempTriples input to load from
	 */
	void load(TempTriples input, ProgressListener listener);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy