Package

reactivemongo

bson

Permalink

package bson

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. bson
  2. DefaultBSONHandlers
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class BSONArray(stream: Stream[Try[BSONValue]]) extends BSONValue with BSONElementSet with Product with Serializable

    Permalink

    A BSONArray structure (BSON type 0x04).

    A BSONArray structure (BSON type 0x04).

    A BSONArray is a straightforward BSONDocument where keys are a sequence of positive integers.

    A BSONArray is basically a stream of tuples (String, BSONValue) where the first member is a string representation of an index. It is completely lazy. The stream it wraps is a Stream[Try[(String, BSONValue)]] since we cannot be sure that a not yet deserialized value will be processed without error.

  2. class BSONArrayCollectionReader[M[_], T] extends BSONReader[BSONArray, M[T]]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  3. class BSONArrayCollectionWriter[T, Repr] extends VariantBSONWriter[Repr, BSONArray]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  4. case class BSONBinary(value: ReadableBuffer, subtype: Subtype) extends BSONValue with Product with Serializable

    Permalink

    A BSON binary value.

    A BSON binary value.

    value

    The binary content.

    subtype

    The type of the binary content.

  5. case class BSONBoolean(value: Boolean) extends BSONValue with Product with Serializable

    Permalink

    BSON boolean value

  6. sealed trait BSONBooleanLike extends AnyRef

    Permalink

    A BSON value that can be seen as a boolean.

    A BSON value that can be seen as a boolean.

    Conversions:

    • number = 0 ~> false
    • number != 0 ~> true
    • boolean
    • undefined ~> false
    • null ~> false
  7. sealed trait BSONBooleanLikeClass[B <: BSONValue] extends BSONBooleanLike

    Permalink
  8. class BSONBooleanLikeReader[B <: BSONValue] extends BSONReader[B, BSONBooleanLike]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  9. class BSONDBPointer extends BSONValue with Product with Serializable with Serializable

    Permalink

    BSON DBPointer value.

  10. case class BSONDateTime(value: Long) extends BSONValue with Product with Serializable

    Permalink

    BSON date time value

  11. case class BSONDocument(stream: Stream[Try[BSONElement]]) extends BSONValue with BSONElementSet with Product with Serializable

    Permalink

    A BSONDocument structure (BSON type 0x03).

    A BSONDocument structure (BSON type 0x03).

    A BSONDocument is basically a stream of tuples (String, BSONValue). It is completely lazy. The stream it wraps is a Stream[Try[(String, BSONValue)]] since we cannot be sure that a not yet deserialized value will be processed without error.

  12. type BSONDocumentHandler[T] = BSONDocumentReader[T] with BSONDocumentWriter[T] with BSONHandler[BSONDocument, T]

    Permalink

    Convenient type alias for document handlers

  13. trait BSONDocumentReader[T] extends BSONReader[BSONDocument, T]

    Permalink
  14. trait BSONDocumentWriter[T] extends BSONWriter[T, BSONDocument]

    Permalink
  15. case class BSONDouble(value: Double) extends BSONValue with Product with Serializable

    Permalink

    A BSON Double.

  16. case class BSONElement(name: String, value: BSONValue) extends ElementProducer with Product with Serializable

    Permalink
  17. sealed trait BSONElementLowPriority extends AnyRef

    Permalink
  18. sealed trait BSONElementSet extends ElementProducer

    Permalink

    Operations for a BSONElement that can contain multiple nested elements.

  19. trait BSONHandler[B <: BSONValue, T] extends BSONReader[B, T] with BSONWriter[T, B]

    Permalink
  20. case class BSONInteger(value: Int) extends BSONValue with Product with Serializable

    Permalink

    BSON Integer value

  21. case class BSONJavaScript(value: String) extends BSONValue with Product with Serializable

    Permalink

    BSON JavaScript value.

    BSON JavaScript value.

    value

    The JavaScript source code.

  22. case class BSONJavaScriptWS(value: String) extends BSONValue with Product with Serializable

    Permalink

    BSON scoped JavaScript value.

    BSON scoped JavaScript value.

    value

    The JavaScript source code. TODO

  23. case class BSONLong(value: Long) extends BSONValue with Product with Serializable

    Permalink

    BSON Long value

  24. sealed trait BSONNumberLike extends AnyRef

    Permalink

    A BSON value that can be seen as a number.

    A BSON value that can be seen as a number.

    Conversions:

  25. sealed trait BSONNumberLikeClass[B <: BSONValue] extends BSONNumberLike

    Permalink
  26. class BSONNumberLikeReader[B <: BSONValue] extends BSONReader[B, BSONNumberLike]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  27. class BSONObjectID extends BSONValue with Serializable with Equals

    Permalink

    BSON ObjectId value.

    BSON ObjectId value.

    +------------------------+------------------------+------------------------+------------------------+ + timestamp (in seconds) + machine identifier + thread identifier + increment + + (4 bytes) + (3 bytes) + (2 bytes) + (3 bytes) + +------------------------+------------------------+------------------------+------------------------+

    Annotations
    @SerialVersionUID()
  28. trait BSONReader[B <: BSONValue, T] extends AnyRef

    Permalink

    A reader that produces an instance of T from a subtype of BSONValue.

  29. case class BSONRegex(value: String, flags: String) extends BSONValue with Product with Serializable

    Permalink

    BSON Regex value.

    BSON Regex value.

    flags

    Regex flags.

  30. case class BSONString(value: String) extends BSONValue with Product with Serializable

    Permalink
  31. case class BSONSymbol(value: String) extends BSONValue with Product with Serializable

    Permalink

    BSON Symbol value.

  32. case class BSONTimestamp(value: Long) extends BSONValue with Product with Serializable

    Permalink

    BSON Timestamp value

  33. sealed trait BSONValue extends AnyRef

    Permalink
  34. trait BSONWriter[T, B <: BSONValue] extends AnyRef

    Permalink

    A writer that produces a subtype of BSONValue fron an instance of T.

  35. trait DefaultBSONHandlers extends AnyRef

    Permalink
  36. sealed trait ElementProducer extends Producer[BSONElement]

    Permalink
  37. abstract class IdentityBSONConverter[T <: BSONValue] extends BSONReader[T, T] with BSONWriter[T, T]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  38. sealed trait Producer[T] extends AnyRef

    Permalink
  39. sealed trait Subtype extends AnyRef

    Permalink

    Binary Subtype

  40. sealed trait UnsafeBSONReader[T] extends AnyRef

    Permalink
  41. trait VariantBSONDocumentReader[+T] extends VariantBSONReader[BSONDocument, T]

    Permalink
  42. trait VariantBSONDocumentWriter[-T] extends VariantBSONWriter[T, BSONDocument]

    Permalink
  43. trait VariantBSONReader[-B <: BSONValue, +T] extends AnyRef

    Permalink

    A reader that produces an instance of T from a subtype of BSONValue.

  44. class VariantBSONReaderWrapper[B <: BSONValue, T] extends BSONReader[B, T]

    Permalink
  45. trait VariantBSONWriter[-T, +B <: BSONValue] extends AnyRef

    Permalink

    A writer that produces a subtype of BSONValue fron an instance of T.

  46. class VariantBSONWriterWrapper[T, B <: BSONValue] extends BSONWriter[T, B]

    Permalink

Value Members

  1. object BSON

    Permalink
  2. object BSONArray extends Serializable

    Permalink
  3. implicit object BSONArrayIdentity extends IdentityBSONConverter[BSONArray]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  4. object BSONBinary extends Serializable

    Permalink
  5. implicit object BSONBinaryHandler extends BSONHandler[BSONBinary, Array[Byte]]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  6. implicit object BSONBinaryIdentity extends IdentityBSONConverter[BSONBinary]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  7. implicit object BSONBooleanHandler extends BSONHandler[BSONBoolean, Boolean]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  8. implicit object BSONBooleanIdentity extends IdentityBSONConverter[BSONBoolean]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  9. object BSONBooleanLike

    Permalink
  10. implicit object BSONBooleanLikeWriter extends VariantBSONWriter[BSONBooleanLike, BSONValue]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  11. object BSONDBPointer extends AbstractFunction2[String, Array[Byte], BSONDBPointer] with Serializable

    Permalink
  12. implicit object BSONDateTimeHandler extends BSONHandler[BSONDateTime, Date]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  13. implicit object BSONDateTimeIdentity extends IdentityBSONConverter[BSONDateTime]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  14. object BSONDocument extends Serializable

    Permalink
  15. def BSONDocumentHandler[T](read: (BSONDocument) ⇒ T, write: (T) ⇒ BSONDocument): BSONDocumentHandler[T]

    Permalink

    Handler factory

  16. implicit object BSONDocumentIdentity extends IdentityBSONConverter[BSONDocument] with BSONDocumentReader[BSONDocument] with BSONDocumentWriter[BSONDocument]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  17. object BSONDocumentReader

    Permalink
  18. object BSONDocumentWriter

    Permalink
  19. implicit object BSONDoubleHandler extends BSONHandler[BSONDouble, Double]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  20. implicit object BSONDoubleIdentity extends IdentityBSONConverter[BSONDouble]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  21. object BSONElement extends BSONElementLowPriority with Serializable

    Permalink
  22. object BSONElementSet

    Permalink
  23. object BSONHandler

    Permalink
  24. implicit object BSONIntegerHandler extends BSONHandler[BSONInteger, Int]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  25. implicit object BSONIntegerIdentity extends IdentityBSONConverter[BSONInteger]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  26. implicit object BSONJavaScriptIdentity extends BSONReader[BSONJavaScript, BSONJavaScript] with BSONWriter[BSONJavaScript, BSONJavaScript]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  27. implicit object BSONLongHandler extends BSONHandler[BSONLong, Long]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  28. implicit object BSONLongIdentity extends IdentityBSONConverter[BSONLong]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  29. object BSONMaxKey extends BSONValue

    Permalink

    BSON Max key value

  30. object BSONMinKey extends BSONValue

    Permalink

    BSON Min key value

  31. object BSONNull extends BSONValue with Product with Serializable

    Permalink

    BSON null value

  32. implicit object BSONNullIdentity extends IdentityBSONConverter[BSONNull.type]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  33. object BSONNumberLike

    Permalink
  34. implicit object BSONNumberLikeWriter extends VariantBSONWriter[BSONNumberLike, BSONValue]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  35. object BSONObjectID extends Serializable

    Permalink
  36. implicit object BSONObjectIDIdentity extends IdentityBSONConverter[BSONObjectID]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  37. object BSONReader

    Permalink
  38. implicit object BSONRegexIdentity extends IdentityBSONConverter[BSONRegex]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  39. implicit object BSONStringHandler extends BSONHandler[BSONString, String]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  40. implicit object BSONStringIdentity extends IdentityBSONConverter[BSONString]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  41. object BSONTimestamp extends Serializable

    Permalink

    Timestamp companion

  42. object BSONUndefined extends BSONValue with Product with Serializable

    Permalink

    BSON Undefined value

  43. implicit object BSONUndefinedIdentity extends IdentityBSONConverter[BSONUndefined.type]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  44. object BSONValue

    Permalink
  45. implicit object BSONValueIdentity extends IdentityBSONConverter[BSONValue]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  46. object BSONWriter

    Permalink
  47. object DefaultBSONHandlers extends DefaultBSONHandlers

    Permalink
  48. object ElementProducer

    Permalink
  49. object Macros

    Permalink

    Macros for generating BSONReader and BSONWriter implementations for case at compile time.

    Macros for generating BSONReader and BSONWriter implementations for case at compile time. Invoking these macros is equivalent to writing anonymous class implementations by hand.

    case class Person(name: String, surname: String)
    implicit val personHandler = Macros.handler[Person]
    See also

    Macros.Options for specific options

  50. implicit def MapReader[K, V](implicit keyReader: BSONReader[BSONString, K], valueReader: BSONReader[_ <: BSONValue, V]): BSONDocumentReader[Map[K, V]]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  51. implicit def MapWriter[K, V](implicit keyWriter: BSONWriter[K, BSONString], valueWriter: BSONWriter[V, _ <: BSONValue]): BSONDocumentWriter[Map[K, V]]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  52. object Producer

    Permalink
  53. object Subtype

    Permalink
  54. def array(values: Producer[BSONValue]*): BSONArray

    Permalink

    Returns an array with given values.

  55. def array: BSONArray

    Permalink

    Returns an empty array.

  56. implicit def bsonArrayToCollectionReader[M[_], T](implicit cbf: CanBuildFrom[M[_], T, M[T]], reader: BSONReader[_ <: BSONValue, T]): BSONReader[BSONArray, M[T]]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  57. implicit def bsonBooleanLikeReader[B <: BSONValue]: BSONBooleanLikeReader[B]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  58. implicit def bsonNumberLikeReader[B <: BSONValue]: BSONNumberLikeReader[B]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  59. package buffer

    Permalink
  60. implicit def collectionToBSONArrayCollectionWriter[T, Repr](implicit arg0: (Repr) ⇒ Traversable[T], writer: BSONWriter[T, _ <: BSONValue]): VariantBSONWriter[Repr, BSONArray]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  61. def document(elements: Producer[BSONElement]*): BSONDocument

    Permalink

    Returns a document with given elements.

  62. def document: BSONDocument

    Permalink

    Returns an empty document.

  63. def element(name: String, value: BSONValue): BSONElement

    Permalink
  64. package exceptions

    Permalink
  65. implicit def findReader[T](implicit reader: VariantBSONReader[_ <: BSONValue, T]): BSONReader[_ <: BSONValue, T]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  66. implicit def findWriter[T](implicit writer: VariantBSONWriter[T, _ <: BSONValue]): BSONWriter[T, _ <: BSONValue]

    Permalink
    Definition Classes
    DefaultBSONHandlers
  67. def generateId: BSONObjectID

    Permalink

    Returns a newly generated object ID.

  68. package lowlevel

    Permalink
  69. package utils

    Permalink

Inherited from DefaultBSONHandlers

Inherited from AnyRef

Inherited from Any

Ungrouped