BSONInput

fm.serializer.bson.BSONInput
See theBSONInput companion object
final class BSONInput(reader: BsonReader) extends Input

Attributes

Companion
object
Graph
Supertypes
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def allowStringMap: Boolean
def hasAnotherElement: Boolean

Is there another element to read in the collection?

Is there another element to read in the collection?

Attributes

final override def lastFieldName(): String

The last field name that was read (if any)

The last field name that was read (if any)

Attributes

Definition Classes
final override def lastFieldNumber(): Int

The last field number that was read (if any)

The last field number that was read (if any)

Attributes

Definition Classes
def nextValueIsNull: Boolean

Returns true if the next value is known to be null otherwise false if the value is not null or is unknown. This means that even if the next value ends up being null this can return false.

Returns true if the next value is known to be null otherwise false if the value is not null or is unknown. This means that even if the next value ends up being null this can return false.

Note: If the next value is null then this method should consume that input

Attributes

def readFieldName(): String

If dynamic string maps are supported then this should be implemented otherwise this can just throw an exception.

If dynamic string maps are supported then this should be implemented otherwise this can just throw an exception.

null should be returns on the end of an object/message

Attributes

def readFieldNumber(nameToNumMap: FieldNameToNumberLookup): Int

This is for reading fields of an object.

This is for reading fields of an object.

Return the field number for the next readable field. Returns 0 if we've reached the end of the object/message

Attributes

def readNestedBigDecimal(): BigDecimal
def readNestedBigInteger(): BigInteger
def readNestedBool(): Boolean
def readNestedBsonBinary(): BsonBinary
def readNestedByteArray(): Array[Byte]
def readNestedDateTime(): Long
def readNestedDouble(): Double
def readNestedFixedInt(): Int
def readNestedFixedLong(): Long
def readNestedFloat(): Float
def readNestedInt(): Int
def readNestedLong(): Long
def readNestedMaxKey(): MaxKey
def readNestedMinKey(): MinKey
def readNestedObject[T](f: FieldInput => T): T
def readNestedObjectId(): ObjectId
def readNestedSignedInt(): Int
def readNestedSignedLong(): Long
def readNestedString(): String
def readRawBigDecimal(): BigDecimal
def readRawBigInteger(): BigInteger
def readRawBool(): Boolean
def readRawBsonBinary(): BsonBinary
def readRawByteArray(): Array[Byte]
def readRawCollection[T](f: CollectionInput => T): T
def readRawDateTime(): Long
def readRawDouble(): Double
def readRawFixedInt(): Int
def readRawFixedLong(): Long
def readRawFloat(): Float
def readRawInt(): Int
def readRawLong(): Long
def readRawMaxKey(): MaxKey
def readRawMinKey(): MinKey
def readRawObject[T](f: FieldInput => T): T
def readRawObjectId(): ObjectId
def readRawSignedInt(): Int
def readRawSignedLong(): Long
def readRawString(): String
def readRawUnsignedInt(): Int
def readRawUnsignedLong(): Long
def skipUnknownField(): Unit

Skip an unknown field value.

Skip an unknown field value.

If after calling readFieldNumber(...) we don't know how to handle the resulting field number then this method can be called to skip the value of the field after which we can call readFieldNumber(...) again.

Attributes

Inherited methods

def reportUnsetField[T](number: Int, name: String, hasUserDefinedDefaultValue: Boolean, deserializer: Deserializer[T]): Unit

This is for reporting that fields for an object were not read and whether or not they had a user-defined default value.

This is for reporting that fields for an object were not read and whether or not they had a user-defined default value.

Value parameters

deserializer

The deserializer for the field. Note: This can be null.

hasUserDefinedDefaultValue

Whether or not there was a user defined default value (e.g. val foo: Int = 123)

name

The field name. Note: This can be null.

number

The field number

Attributes

Inherited from:
FieldInput