Class SimpleDataRow
java.lang.Object
org.apache.ignite.internal.persistence.freelist.SimpleDataRow
- All Implemented Interfaces:
org.apache.ignite.internal.Storable
Implementation of
Storable which holds byte array of variable length.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleDataRow(int part, byte[] val) SimpleDataRow(long link, int part, byte[] val) -
Method Summary
Modifier and TypeMethodDescriptionintIOVersions<? extends AbstractDataPageIO>longlink()voidlink(long link) intsize()toString()byte[]value()
-
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:
linkin interfaceorg.apache.ignite.internal.Storable- Parameters:
link- Link for this row.
-
link
public long link()- Specified by:
linkin interfaceorg.apache.ignite.internal.Storable- Returns:
- Link for this row.
-
size
- Specified by:
sizein interfaceorg.apache.ignite.internal.Storable- Returns:
- Row size in page.
- Throws:
IgniteCheckedException- If failed.
-
headerSize
public int headerSize()- Specified by:
headerSizein interfaceorg.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
- Specified by:
ioVersionsin interfaceorg.apache.ignite.internal.Storable- Returns:
- I/O for handling this storable.
-
toString
-