Search in sources :

Example 1 with DataInnerIO

use of org.apache.ignite.internal.processors.cache.tree.DataInnerIO in project ignite by apache.

the class RecordUtils method buildNewRootInitRecord.

/**
 */
public static NewRootInitRecord buildNewRootInitRecord() {
    DataInnerIO latest = VERSIONS.latest();
    // Deserialization doesn't check size from header but it is always expected io.getItemSize as length of rowBytes.
    byte[] rowBytes = new byte[latest.getItemSize()];
    return new NewRootInitRecord(1, 1L, 1, latest, 1, rowBytes, 1L);
}
Also used : NewRootInitRecord(org.apache.ignite.internal.pagemem.wal.record.delta.NewRootInitRecord) DataInnerIO(org.apache.ignite.internal.processors.cache.tree.DataInnerIO)

Example 2 with DataInnerIO

use of org.apache.ignite.internal.processors.cache.tree.DataInnerIO in project ignite by apache.

the class RecordUtils method buildInsertRecord.

/**
 */
public static InsertRecord buildInsertRecord() {
    DataInnerIO latest = VERSIONS.latest();
    // Deserialization doesn't check size from header but it is always expected io.getItemSize as length of rowBytes.
    byte[] rowBytes = new byte[latest.getItemSize()];
    return new InsertRecord(1, 1, latest, 1, rowBytes, 1);
}
Also used : DataInnerIO(org.apache.ignite.internal.processors.cache.tree.DataInnerIO) DataPageInsertRecord(org.apache.ignite.internal.pagemem.wal.record.delta.DataPageInsertRecord) InsertRecord(org.apache.ignite.internal.pagemem.wal.record.delta.InsertRecord)

Example 3 with DataInnerIO

use of org.apache.ignite.internal.processors.cache.tree.DataInnerIO in project ignite by apache.

the class RecordUtils method buildReplaceRecord.

/**
 */
public static ReplaceRecord buildReplaceRecord() {
    DataInnerIO latest = VERSIONS.latest();
    // Deserialization doesn't check size from header but it is always expected io.getItemSize as length of rowBytes.
    byte[] rowBytes = new byte[latest.getItemSize()];
    return new ReplaceRecord(1, 1, latest, rowBytes, 1);
}
Also used : DataInnerIO(org.apache.ignite.internal.processors.cache.tree.DataInnerIO) ReplaceRecord(org.apache.ignite.internal.pagemem.wal.record.delta.ReplaceRecord)

Aggregations

DataInnerIO (org.apache.ignite.internal.processors.cache.tree.DataInnerIO)3 DataPageInsertRecord (org.apache.ignite.internal.pagemem.wal.record.delta.DataPageInsertRecord)1 InsertRecord (org.apache.ignite.internal.pagemem.wal.record.delta.InsertRecord)1 NewRootInitRecord (org.apache.ignite.internal.pagemem.wal.record.delta.NewRootInitRecord)1 ReplaceRecord (org.apache.ignite.internal.pagemem.wal.record.delta.ReplaceRecord)1