case class DBQueue(batchSize: Int = 1000, map: Map[DocumentCollection[_, _], CollectionQueue[_, _]] = Map.empty) extends Product with Serializable
Useful for batch operations where the batch may overflow. This will create multiple batches and flush as they fill up. Call finish() at the end to make sure all unflushed batches get processed.
- batchSize
the maximum number of records per batch (defaults to 1000)
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DBQueue
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DBQueue(batchSize: Int = 1000, map: Map[DocumentCollection[_, _], CollectionQueue[_, _]] = Map.empty)
- batchSize
the maximum number of records per batch (defaults to 1000)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val batchSize: Int
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def delete[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], docs: D*): IO[DBQueue]
- def delete[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], stream: Stream[IO, D]): IO[DBQueue]
- def deleted: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finish(): IO[DBQueue]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def insert[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], docs: D*): IO[DBQueue]
- def insert[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], stream: Stream[IO, D]): IO[DBQueue]
- def inserted: Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val map: Map[DocumentCollection[_, _], CollectionQueue[_, _]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def upsert[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], docs: D*): IO[DBQueue]
- def upsert[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], stream: Stream[IO, D]): IO[DBQueue]
- def upserted: Int
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated