Packages

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

    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. case class BSONBinary(value: ReadableBuffer, subtype: Subtype) extends BSONValue with Product with Serializable

    A BSON binary value.

    A BSON binary value.

    value

    The binary content.

    subtype

    The type of the binary content.

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

    BSON boolean value

  4. sealed trait BSONBooleanLike extends AnyRef

    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
  5. sealed trait BSONBooleanLikeClass[B <: BSONValue] extends BSONBooleanLike
  6. class BSONDBPointer extends BSONValue with Product with Serializable with Serializable

    BSON DBPointer value.

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

    BSON date time value

  8. final class BSONDecimal extends BSONValue with Product2[Long, Long]

    Value wrapper for a BSON 128-bit decimal.

    Value wrapper for a BSON 128-bit decimal.

    Annotations
    @SerialVersionUID()
  9. case class BSONDocument(stream: Stream[Try[BSONElement]]) extends BSONValue with BSONElementSet with Product with Serializable

    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.

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

    Convenient type alias for document handlers

  11. trait BSONDocumentReader[T] extends BSONReader[BSONDocument, T]
  12. trait BSONDocumentWriter[T] extends BSONWriter[T, BSONDocument]
  13. case class BSONDouble(value: Double) extends BSONValue with Product with Serializable

    A BSON Double.

  14. case class BSONElement(name: String, value: BSONValue) extends ElementProducer with Product with Serializable
  15. sealed trait BSONElementLowPriority extends AnyRef
  16. sealed trait BSONElementSet extends ElementProducer

    Operations for a BSONElement that can contain multiple nested elements.

  17. trait BSONHandler[B <: BSONValue, T] extends BSONReader[B, T] with BSONWriter[T, B]
  18. case class BSONInteger(value: Int) extends BSONValue with Product with Serializable

    BSON Integer value

  19. sealed trait BSONIterator extends Iterator[(String, BSONValue)]
  20. case class BSONJavaScript(value: String) extends BSONValue with Product with Serializable

    BSON JavaScript value.

    BSON JavaScript value.

    value

    The JavaScript source code.

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

    BSON scoped JavaScript value.

    BSON scoped JavaScript value.

    value

    The JavaScript source code. TODO

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

    BSON Long value

  23. sealed trait BSONNumberLike extends AnyRef

    A BSON value that can be seen as a number.

    A BSON value that can be seen as a number.

    Conversions:

  24. sealed trait BSONNumberLikeClass[B <: BSONValue] extends BSONNumberLike
  25. class BSONObjectID extends BSONValue with Serializable with Equals

    BSON ObjectId value.

    BSON ObjectId value.

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

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

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

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

    BSON Regex value.

    BSON Regex value.

    flags

    Regex flags.

  28. case class BSONString(value: String) extends BSONValue with Product with Serializable
  29. case class BSONSymbol(value: String) extends BSONValue with Product with Serializable

    BSON Symbol value.

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

    BSON Timestamp value

  31. sealed trait BSONValue extends AnyRef
  32. trait BSONWriter[T, B <: BSONValue] extends AnyRef

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

  33. trait DefaultBSONHandlers extends AnyRef
  34. class BSONArrayCollectionReader[M[_], T] extends BSONReader[BSONArray, M[T]]
    Definition Classes
    DefaultBSONHandlers
  35. class BSONArrayCollectionWriter[T, Repr] extends VariantBSONWriter[Repr, BSONArray]
    Definition Classes
    DefaultBSONHandlers
  36. class BSONBooleanLikeReader[B <: BSONValue] extends BSONReader[B, BSONBooleanLike]
    Definition Classes
    DefaultBSONHandlers
  37. class BSONNumberLikeReader[B <: BSONValue] extends BSONReader[B, BSONNumberLike]
    Definition Classes
    DefaultBSONHandlers
  38. abstract class IdentityBSONConverter[T <: BSONValue] extends BSONReader[T, T] with BSONWriter[T, T]
    Definition Classes
    DefaultBSONHandlers
  39. sealed trait ElementProducer extends Producer[BSONElement]
  40. sealed trait Producer[T] extends AnyRef
  41. sealed trait Subtype extends AnyRef

    Binary Subtype

  42. sealed trait UnsafeBSONReader[T] extends AnyRef
  43. trait VariantBSONDocumentReader[+T] extends VariantBSONReader[BSONDocument, T]
  44. trait VariantBSONDocumentWriter[-T] extends VariantBSONWriter[T, BSONDocument]
  45. trait VariantBSONReader[-B <: BSONValue, +T] extends AnyRef

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

  46. class VariantBSONReaderWrapper[B <: BSONValue, T] extends BSONReader[B, T]
  47. trait VariantBSONWriter[-T, +B <: BSONValue] extends AnyRef

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

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

Value Members

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

    Handler factory

  2. implicit def MapReader[K, V](implicit keyReader: BSONReader[BSONString, K], valueReader: BSONReader[_ <: BSONValue, V]): BSONDocumentReader[Map[K, V]]
    Definition Classes
    DefaultBSONHandlers
  3. implicit def MapWriter[K, V](implicit keyWriter: BSONWriter[K, BSONString], valueWriter: BSONWriter[V, _ <: BSONValue]): BSONDocumentWriter[Map[K, V]]
    Definition Classes
    DefaultBSONHandlers
  4. def array(values: Producer[BSONValue]*): BSONArray

    Returns an array with given values.

  5. def array: BSONArray

    Returns an empty array.

  6. implicit def bsonArrayToCollectionReader[M[_], T](implicit cbf: CanBuildFrom[M[_], T, M[T]], reader: BSONReader[_ <: BSONValue, T]): BSONReader[BSONArray, M[T]]
    Definition Classes
    DefaultBSONHandlers
  7. implicit def bsonBooleanLikeReader[B <: BSONValue]: BSONBooleanLikeReader[B]
    Definition Classes
    DefaultBSONHandlers
  8. implicit def bsonNumberLikeReader[B <: BSONValue]: BSONNumberLikeReader[B]
    Definition Classes
    DefaultBSONHandlers
  9. implicit def collectionToBSONArrayCollectionWriter[T, Repr](implicit arg0: (Repr) ⇒ Traversable[T], writer: BSONWriter[T, _ <: BSONValue]): VariantBSONWriter[Repr, BSONArray]
    Definition Classes
    DefaultBSONHandlers
  10. def document(elements: Producer[BSONElement]*): BSONDocument

    Returns a document with given elements.

  11. def document: BSONDocument

    Returns an empty document.

  12. def element(name: String, value: BSONValue): BSONElement
  13. implicit def findReader[T](implicit reader: VariantBSONReader[_ <: BSONValue, T]): BSONReader[_ <: BSONValue, T]
    Definition Classes
    DefaultBSONHandlers
  14. implicit def findWriter[T](implicit writer: VariantBSONWriter[T, _ <: BSONValue]): BSONWriter[T, _ <: BSONValue]
    Definition Classes
    DefaultBSONHandlers
  15. def generateId: BSONObjectID

    Returns a newly generated object ID.

  16. object BSON
  17. object BSONArray extends Serializable
  18. object BSONBinary extends Serializable
  19. object BSONBooleanLike
  20. object BSONDBPointer extends AbstractFunction2[String, Array[Byte], BSONDBPointer] with Serializable
  21. object BSONDecimal
  22. object BSONDocument extends Serializable
  23. object BSONDocumentReader
  24. object BSONDocumentWriter
  25. object BSONElement extends BSONElementLowPriority with Serializable
  26. object BSONElementSet
  27. object BSONHandler
  28. object BSONIterator
  29. object BSONMaxKey extends BSONValue

    BSON Max key value

  30. object BSONMinKey extends BSONValue

    BSON Min key value

  31. object BSONNull extends BSONValue with Product with Serializable

    BSON null value

  32. object BSONNumberLike
  33. object BSONObjectID extends Serializable
  34. object BSONReader
  35. object BSONTimestamp extends Serializable

    Timestamp companion

  36. object BSONUndefined extends BSONValue with Product with Serializable

    BSON Undefined value

  37. object BSONValue
  38. object BSONWriter
  39. object DefaultBSONHandlers extends DefaultBSONHandlers
  40. implicit object BSONArrayIdentity extends IdentityBSONConverter[BSONArray]
    Definition Classes
    DefaultBSONHandlers
  41. implicit object BSONBinaryHandler extends BSONHandler[BSONBinary, Array[Byte]]
    Definition Classes
    DefaultBSONHandlers
  42. implicit object BSONBinaryIdentity extends IdentityBSONConverter[BSONBinary]
    Definition Classes
    DefaultBSONHandlers
  43. implicit object BSONBooleanHandler extends BSONHandler[BSONBoolean, Boolean]
    Definition Classes
    DefaultBSONHandlers
  44. implicit object BSONBooleanIdentity extends IdentityBSONConverter[BSONBoolean]
    Definition Classes
    DefaultBSONHandlers
  45. implicit object BSONBooleanLikeWriter extends VariantBSONWriter[BSONBooleanLike, BSONValue]
    Definition Classes
    DefaultBSONHandlers
  46. implicit object BSONDateTimeHandler extends BSONHandler[BSONDateTime, Date]
    Definition Classes
    DefaultBSONHandlers
  47. implicit object BSONDateTimeIdentity extends IdentityBSONConverter[BSONDateTime]
    Definition Classes
    DefaultBSONHandlers
  48. implicit object BSONDecimalHandler extends BSONHandler[BSONDecimal, BigDecimal]
    Definition Classes
    DefaultBSONHandlers
  49. implicit object BSONDecimalIdentity extends IdentityBSONConverter[BSONDecimal]
    Definition Classes
    DefaultBSONHandlers
  50. implicit object BSONDocumentIdentity extends IdentityBSONConverter[BSONDocument] with BSONDocumentReader[BSONDocument] with BSONDocumentWriter[BSONDocument]
    Definition Classes
    DefaultBSONHandlers
  51. implicit object BSONDoubleHandler extends BSONHandler[BSONDouble, Double]
    Definition Classes
    DefaultBSONHandlers
  52. implicit object BSONDoubleIdentity extends IdentityBSONConverter[BSONDouble]
    Definition Classes
    DefaultBSONHandlers
  53. implicit object BSONIntegerHandler extends BSONHandler[BSONInteger, Int]
    Definition Classes
    DefaultBSONHandlers
  54. implicit object BSONIntegerIdentity extends IdentityBSONConverter[BSONInteger]
    Definition Classes
    DefaultBSONHandlers
  55. implicit object BSONJavaScriptIdentity extends BSONReader[BSONJavaScript, BSONJavaScript] with BSONWriter[BSONJavaScript, BSONJavaScript]
    Definition Classes
    DefaultBSONHandlers
  56. implicit object BSONLongHandler extends BSONHandler[BSONLong, Long]
    Definition Classes
    DefaultBSONHandlers
  57. implicit object BSONLongIdentity extends IdentityBSONConverter[BSONLong]
    Definition Classes
    DefaultBSONHandlers
  58. implicit object BSONNullIdentity extends IdentityBSONConverter[BSONNull.type]
    Definition Classes
    DefaultBSONHandlers
  59. implicit object BSONNumberLikeWriter extends VariantBSONWriter[BSONNumberLike, BSONValue]
    Definition Classes
    DefaultBSONHandlers
  60. implicit object BSONObjectIDIdentity extends IdentityBSONConverter[BSONObjectID]
    Definition Classes
    DefaultBSONHandlers
  61. implicit object BSONRegexIdentity extends IdentityBSONConverter[BSONRegex]
    Definition Classes
    DefaultBSONHandlers
  62. implicit object BSONStringHandler extends BSONHandler[BSONString, String]
    Definition Classes
    DefaultBSONHandlers
  63. implicit object BSONStringIdentity extends IdentityBSONConverter[BSONString]
    Definition Classes
    DefaultBSONHandlers
  64. implicit object BSONUndefinedIdentity extends IdentityBSONConverter[BSONUndefined.type]
    Definition Classes
    DefaultBSONHandlers
  65. implicit object BSONValueIdentity extends IdentityBSONConverter[BSONValue]
    Definition Classes
    DefaultBSONHandlers
  66. object ElementProducer
  67. object Macros

    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

  68. object Producer
  69. object Subtype

Inherited from DefaultBSONHandlers

Inherited from AnyRef

Inherited from Any

Ungrouped