Class

bio.ferlab.datalake.spark2.elasticsearch

ElasticSearchClient

Related Doc: package elasticsearch

Permalink

class ElasticSearchClient extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ElasticSearchClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ElasticSearchClient(url: String, username: Option[String] = None, password: Option[String] = None)

    Permalink

Type Members

  1. sealed trait Action extends AnyRef

    Permalink
  2. case class ActionsRequest(actions: Seq[Action]) extends Product with Serializable

    Permalink
  3. case class AddAction(add: Map[String, String]) extends Action with Product with Serializable

    Permalink
  4. case class RemoveAction(remove: Map[String, String]) extends Action with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkNodeRoles: Boolean

    Permalink

    Check roles/http endpoint

    Check roles/http endpoint

    returns

    true if running false if not running or if status code not 200

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  7. def createIndex(indexName: String): HttpResponse

    Permalink

    Create an index

    Create an index

    indexName

    name of the index to create

    returns

    the http response sent by ElasticSearch

  8. def deleteIndex(indexName: String): HttpResponse

    Permalink

    Delete an index

    Delete an index

    indexName

    name of the index to delete

    returns

    the http response sent by ElasticSearch

  9. def deleteTemplate(templateName: String): HttpResponse

    Permalink

    Delete a template

    Delete a template

    templateName

    name of the template to delete

    returns

    the http response sent by ElasticSearch

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  13. def getIndex(indexName: String): HttpResponse

    Permalink

    Get an index

    Get an index

    indexName

    name of the index to fetch

    returns

    the http response sent by ElasticSearch

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  15. def http: CloseableHttpClient

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isRunning: Boolean

    Permalink

    Sends a GET on the url and verify the status code of the response is 200

    Sends a GET on the url and verify the status code of the response is 200

    returns

    true if running false if not running or if status code not 200

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  21. def setAlias(add: List[String], remove: List[String], alias: String): HttpResponse

    Permalink

    Set alias

    Set alias

    returns

    the http response sent by ElasticSearch

  22. def setTemplate(templatePath: String)(implicit spark: SparkSession): HttpResponse

    Permalink

    Set a template to ElasticSearch

    Set a template to ElasticSearch

    templatePath

    path of the template.json that is expected to be in the resource folder

    returns

    the http response sent by ElasticSearch

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped