Create a RecordV2DeltaImpl instance
the internal buffer
the offset of the slice
the number of bytes in the slice
The internal buffer
The number of bytes in the slice
The offset of the slice
Apply a delta and return a buffer with containing a modified record.
If the delta does not contain any changes this is returned.
the delta to apply
the modified record
Get a copy of the array containing this value.
This value in binary form
Get a copy of the buffer containing this value.
This value in binary form
Returns the data content as a list of fields.
This disregards record boundaries. If there is more than one record, they are concatenated to produce a list of all of the fields.
This method would normally only be used when it is known that there is only one record.
a new mutable list of all the fields
Returns the data content as an Array of Arrays of strings.
Example:
// Iterate across each record's fields
value.asRecords().forEach((record) => {
record.forEach((field) => {
console.log("Field value: " + field);
});
});
a new mutable list where each entry represents a record within the data
Calculate the binary difference between the record and another buffer.
Compare this value with an earlier version to calculate a structural delta.
the original value to compare with this value
a structural delta representing the difference between the original and this value
Check if the Bytes are equal to a buffer slices
the buffer
the offset of the slice
the number of bytes in the slice
true if the two bytes are equal
Check if the Bytes are equal to a buffer slices
the buffer slice
true if the two bytes are equal
Get the number of bytes
The length of the data in bytes
Convert the objet to a string
a string representation of the RecordV2Impl
Create a new RecordV2 object from a buffer or RecordV2Impl. If a RecordV2Impl is passed as argument it is simply returned.
the object to create a record from
the record created
Return the name of the data type
RecordV2Impl
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
Implementation of RecordV2Delta