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

com.marklogic.spark.reader.file.FileScanBuilder Maven / Gradle / Ivy

There is a newer version: 2.4.2
Show newest version
/*
 * Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
 */
package com.marklogic.spark.reader.file;

import org.apache.spark.sql.connector.read.Scan;
import org.apache.spark.sql.connector.read.ScanBuilder;
import org.apache.spark.sql.execution.datasources.PartitioningAwareFileIndex;

import java.util.Map;

public class FileScanBuilder implements ScanBuilder {

    private final Map properties;
    private final PartitioningAwareFileIndex fileIndex;

    public FileScanBuilder(Map properties, PartitioningAwareFileIndex fileIndex) {
        this.properties = properties;
        this.fileIndex = fileIndex;
    }

    @Override
    public Scan build() {
        return new FileScan(properties, fileIndex);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy