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

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

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

import java.util.Map;
import java.util.Objects;
import java.util.Set;

import org.apache.spark.sql.connector.catalog.SupportsRead;
import org.apache.spark.sql.connector.catalog.TableCapability;
import org.apache.spark.sql.types.StructType;

import com.google.common.collect.Sets;

public abstract class AbstractEbeanRead implements SupportsRead {
    protected final StructType schema;
    protected final Map properties;

    public AbstractEbeanRead(StructType schema, Map properties) {
        this.schema = Objects.requireNonNull(schema);
        this.properties = Objects.requireNonNull(properties);
    }
    @Override
    public String name() {
        return "ebean";
    }
    @Override
    public StructType schema() {
        return schema;
    }
    @Override
    public Set capabilities() {
        return Sets.newHashSet(TableCapability.BATCH_READ);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy