java.lang.Object
org.apache.ignite.internal.persistence.freelist.SimpleDataRow
All Implemented Interfaces:
org.apache.ignite.internal.Storable

public class SimpleDataRow extends Object implements org.apache.ignite.internal.Storable
Implementation of Storable which holds byte array of variable length.
  • Constructor Details

    • SimpleDataRow

      public SimpleDataRow(long link, int part, byte[] val)
      Parameters:
      link - Link.
      part - Partition.
      val - Value.
    • SimpleDataRow

      public SimpleDataRow(int part, byte[] val)
      Parameters:
      part - Partition.
      val - Value.
  • Method Details

    • link

      public void link(long link)
      Specified by:
      link in interface org.apache.ignite.internal.Storable
      Parameters:
      link - Link for this row.
    • link

      public long link()
      Specified by:
      link in interface org.apache.ignite.internal.Storable
      Returns:
      Link for this row.
    • size

      public int size() throws IgniteCheckedException
      Specified by:
      size in interface org.apache.ignite.internal.Storable
      Returns:
      Row size in page.
      Throws:
      IgniteCheckedException - If failed.
    • headerSize

      public int headerSize()
      Specified by:
      headerSize in interface org.apache.ignite.internal.Storable
      Returns:
      Row header size in page. Header is indivisible part of row which is entirely available on the very first page followed by the row link.
    • value

      public byte[] value()
      Returns:
      Value.
    • ioVersions

      public IOVersions<? extends AbstractDataPageIO> ioVersions()
      Specified by:
      ioVersions in interface org.apache.ignite.internal.Storable
      Returns:
      I/O for handling this storable.
    • toString

      public String toString()
      Overrides:
      toString in class Object