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

com.marklogic.spark.reader.file.FilePartition 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.InputPartition;

import java.util.Arrays;
import java.util.List;

public class FilePartition implements InputPartition {

    static final long serialVersionUID = 1;

    private final List paths;

    public FilePartition(String path) {
        this.paths = Arrays.asList(path);
    }

    public FilePartition(List paths) {
        this.paths = paths;
    }

    public List getPaths() {
        return paths;
    }

    @Override
    public String toString() {
        return this.paths.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy