Search in sources :

Example 1 with BinarySearchRow

use of org.apache.ignite.internal.storage.basic.BinarySearchRow in project ignite-3 by apache.

the class VersionedRowStore method get.

/**
 * Gets a row.
 *
 * @param row The search row.
 * @param ts The timestamp.
 * @return The result row.
 */
public BinaryRow get(@NotNull BinaryRow row, Timestamp ts) {
    assert row != null;
    var key = new BinarySearchRow(row);
    DataRow readValue = storage.read(key);
    return versionedRow(readValue, ts).getFirst();
}
Also used : BinarySearchRow(org.apache.ignite.internal.storage.basic.BinarySearchRow) DataRow(org.apache.ignite.internal.storage.DataRow) DelegatingDataRow(org.apache.ignite.internal.storage.basic.DelegatingDataRow)

Aggregations

DataRow (org.apache.ignite.internal.storage.DataRow)1 BinarySearchRow (org.apache.ignite.internal.storage.basic.BinarySearchRow)1 DelegatingDataRow (org.apache.ignite.internal.storage.basic.DelegatingDataRow)1