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

com.mongodb.spark.PySparkBSONFileOutputFormat Maven / Gradle / Ivy

Go to download

The MongoDB Connector for Hadoop is a plugin for Hadoop that provides the ability to use MongoDB as an input source and/or an output destination.

There is a newer version: 2.0.2
Show newest version
package com.mongodb.spark;

import com.mongodb.hadoop.BSONFileOutputFormat;
import com.mongodb.spark.pickle.RegisterConstructors;
import com.mongodb.spark.pickle.RegisterPickles;

public class PySparkBSONFileOutputFormat
  extends BSONFileOutputFormat {
    private static final RegisterPickles PICKLES = new RegisterPickles();
    private static final RegisterConstructors CONSTRUCTORS =
      new RegisterConstructors();

    static {
        PICKLES.register();
        CONSTRUCTORS.register();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy