BulkIndexingSubscriber

com.sksamuel.elastic4s.streams.BulkIndexingSubscriber
class BulkIndexingSubscriber[T] extends Subscriber[T]

An implementation of the reactive API Subscriber. This subscriber will bulk index received elements. The bulk nature means that the elasticsearch index operations are performed as a bulk call, the size of which are controlled by the batchSize param.

The received elements must be converted into an elastic4s bulk compatible definition, such as index or delete. This is done by the RequestBuilder.

Type parameters

T

the type of element provided by the publisher this subscriber will subscribe with

Value parameters

builder

used to turn elements of T into IndexDefinitions so they can be used in the bulk indexer

client

used to connect to the cluster

Attributes

Graph
Supertypes
trait Subscriber[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit
override def onComplete(): Unit

Attributes

Definition Classes
Subscriber
override def onError(t: Throwable): Unit

Attributes

Definition Classes
Subscriber
override def onNext(t: T): Unit

Attributes

Definition Classes
Subscriber
override def onSubscribe(sub: Subscription): Unit

Attributes

Definition Classes
Subscriber