Package org.deepsymmetry.cratedigger.pdb
Class RekordboxPdb.RowRef
- java.lang.Object
-
- io.kaitai.struct.KaitaiStruct
-
- org.deepsymmetry.cratedigger.pdb.RekordboxPdb.RowRef
-
- Enclosing class:
- RekordboxPdb
public static class RekordboxPdb.RowRef extends io.kaitai.struct.KaitaiStruct
An offset which points to a row in the table, whose actual presence is controlled by one of the bits in `row_present_flags`. This instance allows the row itself to be lazily loaded, unless it is not present, in which case there is no content to be loaded.
-
-
Constructor Summary
Constructors Constructor Description RowRef(io.kaitai.struct.KaitaiStream _io, int rowIndex)
RowRef(io.kaitai.struct.KaitaiStream _io, RekordboxPdb.RowGroup _parent, int rowIndex)
RowRef(io.kaitai.struct.KaitaiStream _io, RekordboxPdb.RowGroup _parent, RekordboxPdb _root, int rowIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RekordboxPdb.RowGroup
_parent()
RekordboxPdb
_root()
io.kaitai.struct.KaitaiStruct
body()
The actual content of the row, as long as it is present.Integer
ofsRow()
The offset of the start of the row (in bytes past the end of the page header).Boolean
present()
Indicates whether the row index considers this row to be present in the table.Integer
rowBase()
The location of this row relative to the start of the page.int
rowIndex()
Identifies which row within the row index this reference came from, so the correct flag can be checked for the row presence and the correct row offset can be found.
-
-
-
Constructor Detail
-
RowRef
public RowRef(io.kaitai.struct.KaitaiStream _io, int rowIndex)
-
RowRef
public RowRef(io.kaitai.struct.KaitaiStream _io, RekordboxPdb.RowGroup _parent, int rowIndex)
-
RowRef
public RowRef(io.kaitai.struct.KaitaiStream _io, RekordboxPdb.RowGroup _parent, RekordboxPdb _root, int rowIndex)
-
-
Method Detail
-
ofsRow
public Integer ofsRow()
The offset of the start of the row (in bytes past the end of the page header).
-
rowBase
public Integer rowBase()
The location of this row relative to the start of the page. A variety of pointers (such as all device_sql_string values) are calculated with respect to this position.
-
present
public Boolean present()
Indicates whether the row index considers this row to be present in the table. Will be `false` if the row has been deleted.
-
body
public io.kaitai.struct.KaitaiStruct body()
The actual content of the row, as long as it is present.
-
rowIndex
public int rowIndex()
Identifies which row within the row index this reference came from, so the correct flag can be checked for the row presence and the correct row offset can be found.
-
_root
public RekordboxPdb _root()
-
_parent
public RekordboxPdb.RowGroup _parent()
- Overrides:
_parent
in classio.kaitai.struct.KaitaiStruct
-
-