com.workday.esclient

EsIndexingDocs

trait EsIndexingDocs extends JestUtils

Trait wrapping Elasticsearch Index Metadata APIs

Linear Supertypes
JestUtils, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EsIndexingDocs
  2. JestUtils
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def jest: JestClient

    Definition Classes
    JestUtils

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val ESBackPressureErrorCode: Int

  7. val RetriesLimit: Int

  8. val SleepTimeToHandleBackPressureMs: Int

  9. def analyze(source: String): EsResult[AnalyzeResponse]

    Submits the given source for analysis using an Elasticsearch Analyzer and returns the response.

    Submits the given source for analysis using an Elasticsearch Analyzer and returns the response.

    source

    String source to analyze.

    returns

    EsResult of com.workday.esclient.AnalyzeResponse

  10. def analyzeWithIndexAnalyzer(source: String, index: String, analyzer: String = EsNames.standardAnalyzerName): EsResult[AnalyzeResponse]

    Submits the given source for analysis using an Elasticsearch Analyzer, defautlting to the standard analyzer.

    Submits the given source for analysis using an Elasticsearch Analyzer, defautlting to the standard analyzer.

    source

    String source to analyze.

    index

    String ES index name.

    analyzer

    String name of ES Analyzer to use.

    returns

    EsResult of com.workday.esclient.AnalyzeResponse

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def bulk(actions: Seq[Action]): EsResult[BulkResponse]

    Parses a given Elasticsearch action sequence and executes the actions.

    Parses a given Elasticsearch action sequence and executes the actions.

    actions

    Sequence of ES update, index, and delete actions to perform.

    returns

    EsResult of com.workday.esclient.BulkResponse

  13. def bulkWithRetry(actions: Seq[Action], depth: Int = 1): EsResult[BulkResponse]

    Attempts a bulk sequence of Elasticsearch actions and retries on failure up to a given depth of retries.

    Attempts a bulk sequence of Elasticsearch actions and retries on failure up to a given depth of retries.

    actions

    Sequence of action to attempt.

    depth

    Int recursion depth limit. Defaults to 1. com.workday.esclient.EsIndexingDocs.RetriesLimit is set to 5.

    returns

    EsResult of com.workday.esclient.BulkResponse

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def deleteDocsByQuery(index: String, query: Option[String] = None): EsResult[DeleteByQueryResponse]

    Deletes Elasticsearch documents that match a given query string.

    Deletes Elasticsearch documents that match a given query string.

    index

    String ES index name.

    query

    Optional string to query ES. Defaults to None.

    returns

    EsResult of com.workday.esclient.DeleteByQueryResponse

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

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

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def forceFlush(index: String): Unit

    Flushes an Elasticsearch index.

    Flushes an Elasticsearch index.

    index

    String ES index name.

  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getSleepTimeForBackpressure: Int

    Gets com.workday.esclient.EsIndexingDocs.SleepTimeToHandleBackPressureMs

  22. def handleJestResult[J <: JestResult, T](jestResult: J, allowError: Boolean = false)(responseHandler: (J) ⇒ T): EsResult[T]

    Returns successful EsResult[T] or error response on JSON parsing/mapping failure.

    Returns successful EsResult[T] or error response on JSON parsing/mapping failure.

    J

    we need J here to allow things like jest's CountResult

    allowError

    - multiGet returns a GetResponse with an error field instead of a source, so we should report that normally

    returns

    EsResult[T] either EsResponse[T] or an error message type

    Attributes
    protected[this]
    Definition Classes
    JestUtils
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def index(index: String, typeName: String, id: String, doc: String): EsResult[UpdateResponse]

    Indexes a given doc to an Elasticsearch index under the given id.

    Indexes a given doc to an Elasticsearch index under the given id.

    index

    String ES index name.

    typeName

    String ES type name.

    id

    String id to index document under.

    doc

    String doc to index.

    returns

    EsResult of com.workday.esclient.UpdateResponse

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. val logger: Logger

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

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toEsResult[T](jestResult: JestResult, allowError: Boolean = false)(implicit arg0: Manifest[T]): EsResult[T]

    Returns com.workday.esclient.EsResult[T] from JSON Jest response.

    Returns com.workday.esclient.EsResult[T] from JSON Jest response.

    T

    implicit manifest

    jestResult

    Jest response to be handled

    allowError

    Boolean value whether to parse error responses

    returns

    EsResult[T]

    Definition Classes
    JestUtils
    Annotations
    @VisibleForTesting()
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JestUtils

Inherited from AnyRef

Inherited from Any

Ungrouped