Skip to content

esRDD Implicit with all 3 parameters (resource, query, config) #592

@randallwhitman

Description

@randallwhitman

When calling sc.esRDD I need to specify all of resource, query, and config. I'd like to call the implicit rather than explicitly calling EsSpark(sc, resource, query, config). In spark/package.scala I find:

  • def esRDD()
  • def esRDD(resource: String)
  • def esRDD(resource: String, query: String)
  • def esRDD(cfg: scala.collection.Map[String, String])
  • def esRDD(resource: String, cfg: scala.collection.Map[String, String])

but not a 3-parameter overload - which can be added as:

    def esRDD(resource: String, query: String, cfg: scala.collection.Map[String, String]) =
        EsSpark.esRDD(sc, resource, query, cfg)
    def esJsonRDD(resource: String, query: String, cfg: scala.collection.Map[String, String]) =
        EsSpark.esJsonRDD(sc, resource, query, cfg)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions