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

com.turbospaces.spark.EbeanBatch Maven / Gradle / Ivy

There is a newer version: 2.0.33
Show newest version
package com.turbospaces.spark;

import java.util.Map;

import org.apache.spark.sql.connector.read.Batch;
import org.apache.spark.sql.connector.read.InputPartition;
import org.apache.spark.sql.types.StructType;

public abstract class EbeanBatch implements Batch {
    protected final StructType schema;
    protected final Map properties;

    public EbeanBatch(StructType schema, Map properties) {
        this.schema = schema;
        this.properties = properties;
    }
    @Override
    public InputPartition[] planInputPartitions() {
        return new InputPartition[] { new EbeanInputPartition() };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy