com.marklogic.flux.api.AvroFilesExporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flux-api Show documentation
Show all versions of flux-api Show documentation
Flux API for data movement with MarkLogic
/*
* Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
*/
package com.marklogic.flux.api;
import java.util.function.Consumer;
/**
* Read rows via Optic from MarkLogic and write them to Avro files on a local filesystem,
* HDFS, or S3 using
* Spark's Avro support.
*/
public interface AvroFilesExporter extends Executor {
AvroFilesExporter from(Consumer consumer);
AvroFilesExporter from(String opticQuery);
AvroFilesExporter to(Consumer consumer);
AvroFilesExporter to(String path);
}