Packages

package bson

The bson package, contains mirrors and companion objects for Bson values.

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

Package Members

  1. package annotations
  2. package codecs
  3. package collection

    The collection package.

Type Members

  1. type BsonArray = bson.BsonArray

    Alias to org.bson.BsonArray

  2. type BsonBinary = bson.BsonBinary

    Alias to org.bson.BsonBinary

  3. type BsonBoolean = bson.BsonBoolean

    Alias to org.bson.BsonBoolean

  4. type BsonDateTime = bson.BsonDateTime

    Alias to org.bson.BsonDateTime

  5. type BsonDecimal128 = bson.BsonDecimal128

    Alias to org.bson.BsonDecimal128

    Alias to org.bson.BsonDecimal128

    Since

    1.2

  6. type BsonDocument = bson.BsonDocument

    Alias to org.bson.BsonDocument

  7. type BsonDouble = bson.BsonDouble

    Alias to org.bson.BsonDouble

  8. type BsonElement = bson.BsonElement

    Alias to org.bson.BsonElement

  9. type BsonInt32 = bson.BsonInt32

    Alias to org.bson.BsonInt32

  10. type BsonInt64 = bson.BsonInt64

    Alias to org.bson.BsonInt64

  11. type BsonJavaScript = bson.BsonJavaScript

    Alias to org.bson.BsonJavaScript

  12. type BsonJavaScriptWithScope = bson.BsonJavaScriptWithScope

    Alias to org.bson.BsonJavaScriptWithScope

  13. type BsonMaxKey = bson.BsonMaxKey

    Alias to org.bson.BsonMaxKey

  14. type BsonMinKey = bson.BsonMinKey

    Alias to org.bson.BsonMinKey

  15. type BsonNull = bson.BsonNull

    Alias to org.bson.BsonNull

  16. type BsonNumber = bson.BsonNumber

    Alias to org.bson.BsonNumber

  17. type BsonObjectId = bson.BsonObjectId

    Alias to org.bson.BsonObjectId

  18. type BsonRegularExpression = bson.BsonRegularExpression

    Alias to org.bson.BsonRegularExpression

  19. type BsonString = bson.BsonString

    Alias to org.bson.BsonString

  20. type BsonSymbol = bson.BsonSymbol

    Alias to org.bson.BsonSymbol

  21. type BsonTimestamp = bson.BsonTimestamp

    Alias to org.bson.BsonTimestamp

  22. trait BsonTransformer[-T] extends AnyRef

    BsonTransformers allow the transformation of type T to their corresponding BsonValue.

    BsonTransformers allow the transformation of type T to their corresponding BsonValue.

    Custom implementations can be written to implicitly to convert a T into a BsonValue so it can be stored in a Document.

    T

    the type of value to be transformed into a BsonValue.

    Annotations
    @implicitNotFound()
    Since

    1.0

  23. type BsonUndefined = bson.BsonUndefined

    Alias to org.bson.BsonUndefined

  24. type BsonValue = bson.BsonValue

    Alias to org.bson.BsonValue

  25. type Decimal128 = bson.types.Decimal128

    Alias to org.bson.Decimal128

    Alias to org.bson.Decimal128

    Since

    1.2

  26. trait DefaultBsonTransformers extends LowPrio

    Default BsonTransformers for native types.

  27. type Document = bson.collection.immutable.Document

    An immutable Document implementation.

    An immutable Document implementation.

    A strictly typed Map[String, BsonValue] like structure that traverses the elements in insertion order. Unlike native scala maps there is no variance in the value type and it always has to be a BsonValue.

  28. trait LowPrio extends AnyRef
  29. type ObjectId = bson.types.ObjectId

    Alias to org.bson.ObjectId

    Alias to org.bson.ObjectId

    Since

    1.2

  30. implicit final class RichBsonElement extends AnyVal

    Implicit value class for a BsonElement allowing easy access to the key/value pair

Value Members

  1. val Document: bson.collection.immutable.Document.type

    An immutable Document implementation.

    An immutable Document implementation.

    A strictly typed Map[String, BsonValue] like structure that traverses the elements in insertion order. Unlike native scala maps there is no variance in the value type and it always has to be a BsonValue.

  2. object BsonArray

    Companion helper for a BsonArray

    Companion helper for a BsonArray

    Since

    1.0

  3. object BsonBinary

    Companion helper for a BsonBinary

    Companion helper for a BsonBinary

    Since

    1.0

  4. object BsonBoolean

    Companion helper for a BsonBoolean

    Companion helper for a BsonBoolean

    Since

    1.0

  5. object BsonDateTime

    Companion helper for a BsonDateTime

    Companion helper for a BsonDateTime

    Since

    1.0

  6. object BsonDecimal128

    Companion helper for a BsonDecimal128

    Companion helper for a BsonDecimal128

    Since

    1.2

  7. object BsonDocument

    Companion helper for a BsonDocument

    Companion helper for a BsonDocument

    Since

    1.0

  8. object BsonDouble

    Companion helper for a BsonDouble

    Companion helper for a BsonDouble

    Since

    1.0

  9. object BsonElement

    A companion helper for a BsonElement - the mapping from a name to a BsonValue.

    A companion helper for a BsonElement - the mapping from a name to a BsonValue.

    Used by the BsonMagnets and polices valid key/value pairs types for Document.

    Since

    1.0

  10. object BsonInt32

    Companion helper for a BsonInt32

    Companion helper for a BsonInt32

    Since

    1.0

  11. object BsonInt64

    Companion helper for a BsonInt64

    Companion helper for a BsonInt64

    Since

    1.0

  12. object BsonJavaScript

    Companion helper for a BsonJavaScript

    Companion helper for a BsonJavaScript

    Since

    1.0

  13. object BsonJavaScriptWithScope

    Companion helper for a BsonJavaScriptWithScope

    Companion helper for a BsonJavaScriptWithScope

    Since

    1.0

  14. object BsonMagnets

    A magnet pattern implementation enforcing the validity of user provided native values being able to be converted into BsonValues.

    A magnet pattern implementation enforcing the validity of user provided native values being able to be converted into BsonValues.

    Attributes
    protected
    Since

    1.0

  15. object BsonMaxKey

    Companion helper for a BsonMaxKey

    Companion helper for a BsonMaxKey

    Since

    1.0

  16. object BsonMinKey

    Companion helper for a BsonMinKey

    Companion helper for a BsonMinKey

    Since

    1.0

  17. object BsonNull

    Companion helper for a BsonNull

    Companion helper for a BsonNull

    Since

    1.0

  18. object BsonNumber

    Companion helper for a BsonNumber

    Companion helper for a BsonNumber

    Since

    1.0

  19. object BsonObjectId

    Companion helper for a BsonObjectId

    Companion helper for a BsonObjectId

    Since

    1.0

  20. object BsonRegularExpression

    Companion helper for a BsonRegularExpression

    Companion helper for a BsonRegularExpression

    Since

    1.0

  21. object BsonString

    Companion helper for a BsonString

    Companion helper for a BsonString

    Since

    1.0

  22. object BsonSymbol

    Companion helper for a BsonSymbol

    Companion helper for a BsonSymbol

    Since

    1.0

  23. object BsonTimestamp

    Companion helper for a BsonTimestamp

    Companion helper for a BsonTimestamp

    Since

    1.0

  24. object BsonTransformer extends DefaultBsonTransformers

    Maps the following native scala types to BsonValues:

    Maps the following native scala types to BsonValues:

    • BsonValue => BsonValue
    • BigDecimal => BsonDecimal128
    • Boolean => BsonBoolean
    • String => BsonString
    • Array[Byte] => BsonBinary
    • Regex => BsonRegex
    • Date => BsonDateTime
    • Decimal128 => BsonDecimal128
    • ObjectId => BsonObjectId
    • Int => BsonInt32
    • Long => BsonInt64
    • Double => BsonDouble
    • None => BsonNull
    • immutable.Document => BsonDocument
    • mutable.Document => BsonDocument
    • Option[T] => BsonValue where T is one of the above types
    • Seq[(String, T)] => BsonDocument where T is one of the above types
    • Seq[T] => BsonArray where T is one of the above types
  25. object BsonUndefined

    Companion helper for a BsonUndefined

    Companion helper for a BsonUndefined

    Since

    1.0

  26. object DefaultHelper

    A helper containing the sealed DefaultsTo trait which is used to determine the default type for a given method.

    A helper containing the sealed DefaultsTo trait which is used to determine the default type for a given method.

    Attributes
    protected[scala]
    Since

    1.0

Inherited from AnyRef

Inherited from Any

Ungrouped