com.exasol.adapter.document.files.JsonLinesFilesDocumentFetcherFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtual-schema-common-document-files Show documentation
Show all versions of virtual-schema-common-document-files Show documentation
Adapter for document data access from files.
package com.exasol.adapter.document.files;
import java.util.List;
import com.exasol.adapter.document.documentfetcher.files.JsonLinesDocumentFetcher;
import com.exasol.adapter.document.queryplanning.RemoteTableQuery;
/**
* Factory for {@link FileTypeSpecificDocumentFetcher}s.
*/
public class JsonLinesFilesDocumentFetcherFactory implements FileTypeSpecificDocumentFetcherFactoryInterface {
@Override
public List getSupportedFileExtensions() {
return List.of(".jsonl");
}
@Override
public FileTypeSpecificDocumentFetcher buildFileTypeSpecificDocumentFetcher(
final RemoteTableQuery remoteTableQuery) {
return new JsonLinesDocumentFetcher();
}
@Override
public FileTypeSpecificSchemaFetcher buildFileTypeSpecificMappingFetcher() {
return FileTypeSpecificSchemaFetcher.empty();
}
}