Packages

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)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkNodeRoles: Boolean

    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
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. def deleteIndex(indexName: String): Unit

    Delete an index

    Delete an index

    indexName

    name of the index to delete

    Exceptions thrown

    IllegalStateException if the server could not delete the index

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def getAliasIndices(aliasName: String): Set[String]

    Get indices associates to a given alias

    Get indices associates to a given alias

    aliasName

    name of the alias

    returns

    a set of indices. Empty if alias does not exist.

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isRunning: Boolean

    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

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def setAlias(add: List[String], remove: List[String], alias: String): Unit

    Set alias

    Set alias

    add

    list of index to add to the alias

    remove

    list of index to remove from the alias

    alias

    name of the alias to update

    Exceptions thrown

    IllegalStateException if the server could not set the alias

  19. def setTemplate(templatePath: String)(implicit spark: SparkSession): String

    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 or spark

    returns

    the http response sent by ElasticSearch

    Exceptions thrown

    IllegalStateException if the server could not set the template

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped