Package com.mongodb.internal.connection
Class FieldTrackingBsonWriter
- java.lang.Object
-
- com.mongodb.internal.connection.BsonWriterDecorator
-
- com.mongodb.internal.connection.FieldTrackingBsonWriter
-
- All Implemented Interfaces:
BsonWriter
@Deprecated(since="2021-05-27") public class FieldTrackingBsonWriter extends BsonWriterDecorator
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description FieldTrackingBsonWriter(BsonWriter bsonWriter)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
hasWrittenField()
Deprecated.void
pipe(BsonReader reader)
Deprecated.Reads a single document from a BsonReader and writes it to this.void
writeBinaryData(java.lang.String name, BsonBinary binary)
Deprecated.Writes a BSON Binary data element to the writer.void
writeBinaryData(BsonBinary binary)
Deprecated.Writes a BSON Binary data element to the writer.void
writeBoolean(boolean value)
Deprecated.Writes a BSON Boolean to the writer.void
writeBoolean(java.lang.String name, boolean value)
Deprecated.Writes a BSON Boolean element to the writer.void
writeDateTime(long value)
Deprecated.Writes a BSON DateTime to the writer.void
writeDateTime(java.lang.String name, long value)
Deprecated.Writes a BSON DateTime element to the writer.void
writeDBPointer(java.lang.String name, BsonDbPointer value)
Deprecated.Writes a BSON DBPointer element to the writer.void
writeDBPointer(BsonDbPointer value)
Deprecated.Writes a BSON DBPointer to the writer.void
writeDecimal128(java.lang.String name, Decimal128 value)
Deprecated.Writes a BSON Decimal128 element to the writer.void
writeDecimal128(Decimal128 value)
Deprecated.Writes a BSON Decimal128 to the writer.void
writeDouble(double value)
Deprecated.Writes a BSON Double to the writer.void
writeDouble(java.lang.String name, double value)
Deprecated.Writes a BSON Double element to the writer.void
writeInt32(int value)
Deprecated.Writes a BSON Int32 to the writer.void
writeInt32(java.lang.String name, int value)
Deprecated.Writes a BSON Int32 element to the writer.void
writeInt64(long value)
Deprecated.Writes a BSON Int64 to the writer.void
writeInt64(java.lang.String name, long value)
Deprecated.Writes a BSON Int64 element to the writer.void
writeJavaScript(java.lang.String code)
Deprecated.Writes a BSON JavaScript to the writer.void
writeJavaScript(java.lang.String name, java.lang.String code)
Deprecated.Writes a BSON JavaScript element to the writer.void
writeJavaScriptWithScope(java.lang.String code)
Deprecated.Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).void
writeJavaScriptWithScope(java.lang.String name, java.lang.String code)
Deprecated.Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).void
writeMaxKey()
Deprecated.Writes a BSON MaxKey to the writer.void
writeMaxKey(java.lang.String name)
Deprecated.Writes a BSON MaxKey element to the writer.void
writeMinKey()
Deprecated.Writes a BSON MinKey to the writer.void
writeMinKey(java.lang.String name)
Deprecated.Writes a BSON MinKey element to the writer.void
writeNull()
Deprecated.Writes a BSON null to the writer.void
writeNull(java.lang.String name)
Deprecated.Writes a BSON null element to the writer.void
writeObjectId(java.lang.String name, ObjectId objectId)
Deprecated.Writes a BSON ObjectId element to the writer.void
writeObjectId(ObjectId objectId)
Deprecated.Writes a BSON ObjectId to the writer.void
writeRegularExpression(java.lang.String name, BsonRegularExpression regularExpression)
Deprecated.Writes a BSON regular expression element to the writer.void
writeRegularExpression(BsonRegularExpression regularExpression)
Deprecated.Writes a BSON regular expression to the writer.void
writeStartArray()
Deprecated.Writes the start of a BSON array to the writer.void
writeStartArray(java.lang.String name)
Deprecated.Writes the start of a BSON array element to the writer.void
writeStartDocument()
Deprecated.Writes the start of a BSON document to the writer.void
writeStartDocument(java.lang.String name)
Deprecated.Writes the start of a BSON document element to the writer.void
writeString(java.lang.String value)
Deprecated.Writes a BSON String to the writer.void
writeString(java.lang.String name, java.lang.String value)
Deprecated.Writes a BSON String element to the writer.void
writeSymbol(java.lang.String value)
Deprecated.Writes a BSON Symbol to the writer.void
writeSymbol(java.lang.String name, java.lang.String value)
Deprecated.Writes a BSON Symbol element to the writer.void
writeTimestamp(java.lang.String name, BsonTimestamp value)
Deprecated.Writes a BSON Timestamp element to the writer.void
writeTimestamp(BsonTimestamp value)
Deprecated.Writes a BSON Timestamp to the writer.void
writeUndefined()
Deprecated.Writes a BSON undefined to the writer.void
writeUndefined(java.lang.String name)
Deprecated.Writes a BSON undefined element to the writer.-
Methods inherited from class com.mongodb.internal.connection.BsonWriterDecorator
flush, writeEndArray, writeEndDocument, writeName
-
-
-
-
Constructor Detail
-
FieldTrackingBsonWriter
public FieldTrackingBsonWriter(BsonWriter bsonWriter)
Deprecated.
-
-
Method Detail
-
hasWrittenField
public boolean hasWrittenField()
Deprecated.
-
writeStartDocument
public void writeStartDocument(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes the start of a BSON document element to the writer.- Specified by:
writeStartDocument
in interfaceBsonWriter
- Overrides:
writeStartDocument
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeStartDocument
public void writeStartDocument()
Deprecated.Description copied from interface:BsonWriter
Writes the start of a BSON document to the writer.- Specified by:
writeStartDocument
in interfaceBsonWriter
- Overrides:
writeStartDocument
in classBsonWriterDecorator
-
writeStartArray
public void writeStartArray(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes the start of a BSON array element to the writer.- Specified by:
writeStartArray
in interfaceBsonWriter
- Overrides:
writeStartArray
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeStartArray
public void writeStartArray()
Deprecated.Description copied from interface:BsonWriter
Writes the start of a BSON array to the writer.- Specified by:
writeStartArray
in interfaceBsonWriter
- Overrides:
writeStartArray
in classBsonWriterDecorator
-
writeBinaryData
public void writeBinaryData(java.lang.String name, BsonBinary binary)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Binary data element to the writer.- Specified by:
writeBinaryData
in interfaceBsonWriter
- Overrides:
writeBinaryData
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.binary
- The Binary data value.
-
writeBinaryData
public void writeBinaryData(BsonBinary binary)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Binary data element to the writer.- Specified by:
writeBinaryData
in interfaceBsonWriter
- Overrides:
writeBinaryData
in classBsonWriterDecorator
- Parameters:
binary
- The Binary data.
-
writeBoolean
public void writeBoolean(java.lang.String name, boolean value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Boolean element to the writer.- Specified by:
writeBoolean
in interfaceBsonWriter
- Overrides:
writeBoolean
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The Boolean value.
-
writeBoolean
public void writeBoolean(boolean value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Boolean to the writer.- Specified by:
writeBoolean
in interfaceBsonWriter
- Overrides:
writeBoolean
in classBsonWriterDecorator
- Parameters:
value
- The Boolean value.
-
writeDateTime
public void writeDateTime(java.lang.String name, long value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON DateTime element to the writer.- Specified by:
writeDateTime
in interfaceBsonWriter
- Overrides:
writeDateTime
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The number of milliseconds since the Unix epoch.
-
writeDateTime
public void writeDateTime(long value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON DateTime to the writer.- Specified by:
writeDateTime
in interfaceBsonWriter
- Overrides:
writeDateTime
in classBsonWriterDecorator
- Parameters:
value
- The number of milliseconds since the Unix epoch.
-
writeDBPointer
public void writeDBPointer(java.lang.String name, BsonDbPointer value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON DBPointer element to the writer.- Specified by:
writeDBPointer
in interfaceBsonWriter
- Overrides:
writeDBPointer
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The DBPointer to write
-
writeDBPointer
public void writeDBPointer(BsonDbPointer value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON DBPointer to the writer.- Specified by:
writeDBPointer
in interfaceBsonWriter
- Overrides:
writeDBPointer
in classBsonWriterDecorator
- Parameters:
value
- The DBPointer to write
-
writeDouble
public void writeDouble(java.lang.String name, double value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Double element to the writer.- Specified by:
writeDouble
in interfaceBsonWriter
- Overrides:
writeDouble
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The Double value.
-
writeDouble
public void writeDouble(double value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Double to the writer.- Specified by:
writeDouble
in interfaceBsonWriter
- Overrides:
writeDouble
in classBsonWriterDecorator
- Parameters:
value
- The Double value.
-
writeInt32
public void writeInt32(java.lang.String name, int value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Int32 element to the writer.- Specified by:
writeInt32
in interfaceBsonWriter
- Overrides:
writeInt32
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The Int32 value.
-
writeInt32
public void writeInt32(int value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Int32 to the writer.- Specified by:
writeInt32
in interfaceBsonWriter
- Overrides:
writeInt32
in classBsonWriterDecorator
- Parameters:
value
- The Int32 value.
-
writeInt64
public void writeInt64(java.lang.String name, long value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Int64 element to the writer.- Specified by:
writeInt64
in interfaceBsonWriter
- Overrides:
writeInt64
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The Int64 value.
-
writeInt64
public void writeInt64(long value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Int64 to the writer.- Specified by:
writeInt64
in interfaceBsonWriter
- Overrides:
writeInt64
in classBsonWriterDecorator
- Parameters:
value
- The Int64 value.
-
writeDecimal128
public void writeDecimal128(Decimal128 value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Decimal128 to the writer.- Specified by:
writeDecimal128
in interfaceBsonWriter
- Overrides:
writeDecimal128
in classBsonWriterDecorator
- Parameters:
value
- The Decimal128 value.
-
writeDecimal128
public void writeDecimal128(java.lang.String name, Decimal128 value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Decimal128 element to the writer.- Specified by:
writeDecimal128
in interfaceBsonWriter
- Overrides:
writeDecimal128
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The Decimal128 value.
-
writeJavaScript
public void writeJavaScript(java.lang.String name, java.lang.String code)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON JavaScript element to the writer.- Specified by:
writeJavaScript
in interfaceBsonWriter
- Overrides:
writeJavaScript
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.code
- The JavaScript code.
-
writeJavaScript
public void writeJavaScript(java.lang.String code)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON JavaScript to the writer.- Specified by:
writeJavaScript
in interfaceBsonWriter
- Overrides:
writeJavaScript
in classBsonWriterDecorator
- Parameters:
code
- The JavaScript code.
-
writeJavaScriptWithScope
public void writeJavaScriptWithScope(java.lang.String name, java.lang.String code)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).- Specified by:
writeJavaScriptWithScope
in interfaceBsonWriter
- Overrides:
writeJavaScriptWithScope
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.code
- The JavaScript code.
-
writeJavaScriptWithScope
public void writeJavaScriptWithScope(java.lang.String code)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).- Specified by:
writeJavaScriptWithScope
in interfaceBsonWriter
- Overrides:
writeJavaScriptWithScope
in classBsonWriterDecorator
- Parameters:
code
- The JavaScript code.
-
writeMaxKey
public void writeMaxKey(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON MaxKey element to the writer.- Specified by:
writeMaxKey
in interfaceBsonWriter
- Overrides:
writeMaxKey
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeMaxKey
public void writeMaxKey()
Deprecated.Description copied from interface:BsonWriter
Writes a BSON MaxKey to the writer.- Specified by:
writeMaxKey
in interfaceBsonWriter
- Overrides:
writeMaxKey
in classBsonWriterDecorator
-
writeMinKey
public void writeMinKey(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON MinKey element to the writer.- Specified by:
writeMinKey
in interfaceBsonWriter
- Overrides:
writeMinKey
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeMinKey
public void writeMinKey()
Deprecated.Description copied from interface:BsonWriter
Writes a BSON MinKey to the writer.- Specified by:
writeMinKey
in interfaceBsonWriter
- Overrides:
writeMinKey
in classBsonWriterDecorator
-
writeNull
public void writeNull(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON null element to the writer.- Specified by:
writeNull
in interfaceBsonWriter
- Overrides:
writeNull
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeNull
public void writeNull()
Deprecated.Description copied from interface:BsonWriter
Writes a BSON null to the writer.- Specified by:
writeNull
in interfaceBsonWriter
- Overrides:
writeNull
in classBsonWriterDecorator
-
writeObjectId
public void writeObjectId(java.lang.String name, ObjectId objectId)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON ObjectId element to the writer.- Specified by:
writeObjectId
in interfaceBsonWriter
- Overrides:
writeObjectId
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.objectId
- The ObjectId value.
-
writeObjectId
public void writeObjectId(ObjectId objectId)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON ObjectId to the writer.- Specified by:
writeObjectId
in interfaceBsonWriter
- Overrides:
writeObjectId
in classBsonWriterDecorator
- Parameters:
objectId
- The ObjectId value.
-
writeRegularExpression
public void writeRegularExpression(java.lang.String name, BsonRegularExpression regularExpression)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON regular expression element to the writer.- Specified by:
writeRegularExpression
in interfaceBsonWriter
- Overrides:
writeRegularExpression
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.regularExpression
- The RegularExpression value.
-
writeRegularExpression
public void writeRegularExpression(BsonRegularExpression regularExpression)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON regular expression to the writer.- Specified by:
writeRegularExpression
in interfaceBsonWriter
- Overrides:
writeRegularExpression
in classBsonWriterDecorator
- Parameters:
regularExpression
- the regular expression to write.
-
writeString
public void writeString(java.lang.String name, java.lang.String value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON String element to the writer.- Specified by:
writeString
in interfaceBsonWriter
- Overrides:
writeString
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The String value.
-
writeString
public void writeString(java.lang.String value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON String to the writer.- Specified by:
writeString
in interfaceBsonWriter
- Overrides:
writeString
in classBsonWriterDecorator
- Parameters:
value
- The String value.
-
writeSymbol
public void writeSymbol(java.lang.String name, java.lang.String value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Symbol element to the writer.- Specified by:
writeSymbol
in interfaceBsonWriter
- Overrides:
writeSymbol
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The symbol.
-
writeSymbol
public void writeSymbol(java.lang.String value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Symbol to the writer.- Specified by:
writeSymbol
in interfaceBsonWriter
- Overrides:
writeSymbol
in classBsonWriterDecorator
- Parameters:
value
- The symbol.
-
writeTimestamp
public void writeTimestamp(java.lang.String name, BsonTimestamp value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Timestamp element to the writer.- Specified by:
writeTimestamp
in interfaceBsonWriter
- Overrides:
writeTimestamp
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.value
- The combined timestamp/increment value.
-
writeTimestamp
public void writeTimestamp(BsonTimestamp value)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON Timestamp to the writer.- Specified by:
writeTimestamp
in interfaceBsonWriter
- Overrides:
writeTimestamp
in classBsonWriterDecorator
- Parameters:
value
- The combined timestamp/increment value.
-
writeUndefined
public void writeUndefined(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes a BSON undefined element to the writer.- Specified by:
writeUndefined
in interfaceBsonWriter
- Overrides:
writeUndefined
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeUndefined
public void writeUndefined()
Deprecated.Description copied from interface:BsonWriter
Writes a BSON undefined to the writer.- Specified by:
writeUndefined
in interfaceBsonWriter
- Overrides:
writeUndefined
in classBsonWriterDecorator
-
pipe
public void pipe(BsonReader reader)
Deprecated.Description copied from interface:BsonWriter
Reads a single document from a BsonReader and writes it to this.- Specified by:
pipe
in interfaceBsonWriter
- Overrides:
pipe
in classBsonWriterDecorator
- Parameters:
reader
- The source.
-
-