| Package | Description |
|---|---|
| io.debezium.document | |
| io.debezium.relational.history |
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
BasicDocument
Package-level implementation of
Document. |
| Modifier and Type | Method and Description |
|---|---|
Document |
Value.asDocument() |
Document |
NullValue.asDocument() |
Document |
ConvertingValue.asDocument() |
Document |
ComparableValue.asDocument() |
Document |
BinaryValue.asDocument() |
Document |
Document.clone()
Obtain a clone of this document.
|
Document |
BasicDocument.clone() |
static Document |
Document.create() |
static Document |
Document.create(CharSequence fieldName,
Object value) |
static Document |
Document.create(CharSequence fieldName1,
Object value1,
CharSequence fieldName2,
Object value2) |
static Document |
Document.create(CharSequence fieldName1,
Object value1,
CharSequence fieldName2,
Object value2,
CharSequence fieldName3,
Object value3) |
static Document |
Document.create(CharSequence fieldName1,
Object value1,
CharSequence fieldName2,
Object value2,
CharSequence fieldName3,
Object value3,
CharSequence fieldName4,
Object value4) |
static Document |
Document.create(CharSequence fieldName1,
Object value1,
CharSequence fieldName2,
Object value2,
CharSequence fieldName3,
Object value3,
CharSequence fieldName4,
Object value4,
CharSequence fieldName5,
Object value5) |
static Document |
Document.create(CharSequence fieldName1,
Object value1,
CharSequence fieldName2,
Object value2,
CharSequence fieldName3,
Object value3,
CharSequence fieldName4,
Object value4,
CharSequence fieldName5,
Object value5,
CharSequence fieldName6,
Object value6) |
Document |
DocumentSerdes.deserialize(String topic,
byte[] data) |
default Document |
Document.getDocument(CharSequence fieldName)
Get the document value in this document for the given field name.
|
default Document |
Document.getOrCreateDocument(CharSequence fieldName)
Get the existing document value in this document for the given field name, or create a new document if there is no existing
document at this field.
|
default Document |
Document.increment(CharSequence name,
double increment)
Increment the numeric value in the given field by the designated amount.
|
default Document |
Document.increment(CharSequence name,
float increment)
Increment the numeric value in the given field by the designated amount.
|
default Document |
Document.increment(CharSequence name,
int increment)
Increment the numeric value in the given field by the designated amount.
|
default Document |
Document.increment(CharSequence name,
long increment)
Increment the numeric value in the given field by the designated amount.
|
Document |
Document.increment(CharSequence name,
Value increment)
Increment the numeric value in the given field by the designated amount.
|
Document |
BasicDocument.increment(CharSequence name,
Value increment) |
private Document |
JacksonReader.parse(com.fasterxml.jackson.core.JsonParser parser) |
private Document |
JacksonReader.parseDocument(com.fasterxml.jackson.core.JsonParser parser,
boolean nested) |
default Document |
Document.putAll(Iterable<Document.Field> fields)
Sets on this object all name/value pairs from the supplied object.
|
Document |
BasicDocument.putAll(Iterable<Document.Field> object) |
default Document |
Document.putAll(Iterable<Document.Field> fields,
Predicate<CharSequence> acceptableFieldNames)
Attempts to copy all of the acceptable fields from the source and set on this document, overwriting any existing
values.
|
default Document |
Document.putAll(Iterator<Document.Field> fields)
Sets on this object all name/value pairs from the supplied object.
|
default Document |
Document.putAll(Map<? extends CharSequence,?> fields)
Sets on this object all key/value pairs from the supplied map.
|
Document |
JacksonReader.read(byte[] rawBytes) |
default Document |
DocumentReader.read(byte[] rawBytes)
Read a document from the supplied bytes.
|
Document |
JacksonReader.read(File jsonFile) |
default Document |
DocumentReader.read(File jsonFile)
Read a document from the supplied file.
|
Document |
JacksonReader.read(InputStream jsonStream) |
Document |
DocumentReader.read(InputStream jsonStream)
Read a document from the supplied stream.
|
Document |
JacksonReader.read(Reader jsonReader) |
Document |
DocumentReader.read(Reader jsonReader)
Read a document from the supplied
Reader. |
Document |
JacksonReader.read(String json) |
Document |
DocumentReader.read(String json)
Read a document from the supplied JSON-formatted string.
|
Document |
JacksonReader.read(URL jsonUrl) |
default Document |
DocumentReader.read(URL jsonUrl)
Read a document from the content at the given URL.
|
Document |
Document.removeAll()
Remove all fields from this document.
|
Document |
BasicDocument.removeAll() |
default Document |
Document.set(CharSequence name,
Object value)
Set the value for the field with the given name to be a binary value.
|
default Document |
Document.setBinary(CharSequence name,
byte[] data)
Set the value for the field with the given name to be a binary value.
|
default Document |
Document.setBoolean(CharSequence name,
boolean value)
Set the value for the field with the given name to the supplied boolean value.
|
default Document |
Document.setDocument(CharSequence name)
Set the value for the field with the given name to be a new, empty Document.
|
default Document |
Document.setDocument(CharSequence name,
Document document)
Set the value for the field with the given name to be the supplied Document.
|
default Document |
Array.setDocument(int index)
Set the value for the field with the given name to be a new, empty Document.
|
default Document |
Array.setDocument(int index,
Document document)
Set the value for the field with the given name to be the supplied Document.
|
default Document |
Document.setNull(CharSequence name)
Set the value for the field with the given name to be a null value.
|
default Document |
Document.setNumber(CharSequence name,
BigDecimal value)
Set the value for the field with the given name to the supplied big integer value.
|
default Document |
Document.setNumber(CharSequence name,
BigInteger value)
Set the value for the field with the given name to the supplied big integer value.
|
default Document |
Document.setNumber(CharSequence name,
double value)
Set the value for the field with the given name to the supplied double value.
|
default Document |
Document.setNumber(CharSequence name,
float value)
Set the value for the field with the given name to the supplied float value.
|
default Document |
Document.setNumber(CharSequence name,
int value)
Set the value for the field with the given name to the supplied integer value.
|
default Document |
Document.setNumber(CharSequence name,
long value)
Set the value for the field with the given name to the supplied long value.
|
default Document |
Document.setString(CharSequence name,
String value)
Set the value for the field with the given name to the supplied string value.
|
Document |
Document.setValue(CharSequence name,
Value value)
Set the value for the field with the given name.
|
Document |
BasicDocument.setValue(CharSequence name,
Value value) |
default Document |
Document.setValue(Document.Field field)
Set the field on this document.
|
default Document |
Document.transform(BiFunction<CharSequence,Value,Value> transformer)
Transform all of the field values using the supplied
transformer function. |
| Modifier and Type | Method and Description |
|---|---|
default Array |
Array.add(Document value)
Adds the document value to the end of this array.
|
int |
Document.compareTo(Document that)
Compare this Document to the specified Document, taking into account the order of the fields.
|
int |
BasicDocument.compareTo(Document that) |
int |
Document.compareTo(Document that,
boolean enforceFieldOrder)
Compare this Document to the specified Document, optionally comparing the fields in the same order.
|
int |
BasicDocument.compareTo(Document that,
boolean enforceFieldOrder) |
int |
Document.compareToUsingSimilarFields(Document that)
Compare this Document to the specified Document, without regard to the order of the fields and only using the fields
that are in both documents.
|
int |
BasicDocument.compareToUsingSimilarFields(Document that) |
int |
Document.compareToWithoutFieldOrder(Document that)
Compare this Document to the specified Document, without regard to the order of the fields.
|
int |
BasicDocument.compareToWithoutFieldOrder(Document that) |
static Value |
Value.create(Document value) |
boolean |
Document.hasAll(Document document)
Checks if this object contains all of the fields in the supplied document.
|
boolean |
BasicDocument.hasAll(Document that) |
byte[] |
DocumentSerdes.serialize(String topic,
Document data) |
default Document |
Document.setDocument(CharSequence name,
Document document)
Set the value for the field with the given name to be the supplied Document.
|
default Document |
Array.setDocument(int index,
Document document)
Set the value for the field with the given name to be the supplied Document.
|
String |
JacksonWriter.write(Document document) |
String |
DocumentWriter.write(Document document)
Write the supplied document to a string using UTF-8.
|
void |
JacksonWriter.write(Document document,
OutputStream jsonStream) |
void |
DocumentWriter.write(Document document,
OutputStream jsonStream)
Write the supplied document to bytes using UTF-8.
|
void |
JacksonWriter.write(Document document,
Writer jsonWriter) |
void |
DocumentWriter.write(Document document,
Writer jsonWriter)
Write the supplied document to bytes using UTF-8.
|
byte[] |
JacksonWriter.writeAsBytes(Document document) |
default byte[] |
DocumentWriter.writeAsBytes(Document document)
Write the supplied array to bytes using UTF-8.
|
protected void |
JacksonWriter.writeDocument(Document document,
com.fasterxml.jackson.core.JsonGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
Value.ifDocument(Consumer<Document> consumer)
If a value is a document, invoke the specified consumer with the value, otherwise do nothing.
|
| Modifier and Type | Field and Description |
|---|---|
private Document |
HistoryRecord.doc |
| Modifier and Type | Method and Description |
|---|---|
Document |
HistoryRecord.document() |
protected Document |
HistoryRecord.position() |
protected Document |
HistoryRecord.source() |
private Document |
JsonTableChangeSerializer.toDocument(Column column) |
private Document |
JsonTableChangeSerializer.toDocument(Table table) |
Document |
JsonTableChangeSerializer.toDocument(TableChanges.TableChange tableChange) |
| Modifier and Type | Method and Description |
|---|---|
static TableChanges.TableChange |
JsonTableChangeSerializer.fromDocument(Document document,
boolean useCatalogBeforeSchema) |
private static Table |
JsonTableChangeSerializer.fromDocument(TableId id,
Document document) |
protected boolean |
HistoryRecordComparator.isPositionAtOrBefore(Document position1,
Document position2) |
protected boolean |
HistoryRecordComparator.isSameSource(Document source1,
Document source2) |
| Modifier and Type | Method and Description |
|---|---|
static HistoryRecordComparator |
HistoryRecordComparator.usingPositions(BiFunction<Document,Document,Boolean> positionComparator)
Create a
HistoryRecordComparator that requires identical sources but will use the supplied function to compare
positions. |
static HistoryRecordComparator |
HistoryRecordComparator.usingPositions(BiFunction<Document,Document,Boolean> positionComparator)
Create a
HistoryRecordComparator that requires identical sources but will use the supplied function to compare
positions. |
| Constructor and Description |
|---|
HistoryRecord(Document document) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.