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

org.etlunit.io.file.DataFile Maven / Gradle / Ivy

There is a newer version: 1.6.9
Show newest version
package org.etlunit.io.file;

import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public interface DataFile
{
	interface FileData
	{
		Iterator iterator() throws IOException;

		void dispose() throws IOException;
	}

	interface FileRow
	{
		Map getData();

		OrderKey getOrderKey();
	}

	interface DataConverter
	{
		String format(Object data, DataFileSchema.Column column);
	}

	File getSource();

	DataFileWriter getWriter() throws IOException;

	DataFileWriter getWriter(DataConverter converter) throws IOException;

	Map> getIndex();

	FileData getFileData() throws IOException;

	FileData getFileData(List columns) throws IOException;

	DataFileSchema getDataFileSchema();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy