org.etlunit.io.file.DataFile Maven / Gradle / Ivy
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