Class TableSection
- Namespace
- TdbIO
- Assembly
- TdbIO.dll
A section of fixed-size rows, as found in .db1 files (TdbIO.Db1Document.ReadTables) and in
DBV@ files (TdbIO.DbvDocument.Sections). Sections represent database tables or domains; in .db1 files
they are identified by their schema table number in TdbIO.TableSection.Key.
public sealed class TableSectionInheritance
Inherited Members
Properties
Descriptors
The index descriptors of the section header. Descriptor 0 defines the primary index/cluster; descriptors 1..N indicate whether secondary indexes defined in the table schema are active (1) or inactive (0) for this table domain.
public IReadOnlyList<uint> Descriptors { get; }Property Value
End
The offset just after the section: after the closer when the section has a key, otherwise after the 0 byte that ends the rows.
public long End { get; }Property Value
Key
The schema table number (table ID) stored before the section in .db1 files (for example, 1 for
object, 3 for coordsys, 13 for point, 16 for part, 105 for object_numbering, 141 for object_phase), or null when
the section has no table key (such as internal table domains, or any section in DBV@ files).
public int? Key { get; }Property Value
- int?
Offset
The offset where the section starts: the key when there is one, otherwise the separator.
public long Offset { get; }Property Value
Ordinal
The position of the section in its file, from 0.
public int Ordinal { get; }Property Value
RowSize
The number of body bytes in every row.
public int RowSize { get; }Property Value
Rows
The rows in file order. The list is a view over the data: each row is built when it is read.
public IReadOnlyList<TableRow> Rows { get; }Property Value
RowsOffset
The offset of the first row (or of the 0 byte that ends the rows when there are none).
public long RowsOffset { get; }Property Value
Methods
AsAssemblies()
Decodes all rows of this section as TdbIO.AssemblyRow (size 92).
public IReadOnlyList<AssemblyRow> AsAssemblies()Returns
AsAssemblyNumberings()
Decodes all rows of this section as TdbIO.AssemblyNumberingRow (size 76).
public IReadOnlyList<AssemblyNumberingRow> AsAssemblyNumberings()Returns
AsBoltHolePoints()
Decodes all rows of this section as TdbIO.BoltHolePointsRow (size 60).
public IReadOnlyList<BoltHolePointsRow> AsBoltHolePoints()Returns
AsBoltHoles()
Decodes all rows of this section as TdbIO.BoltHoleRow (size 48).
public IReadOnlyList<BoltHoleRow> AsBoltHoles()Returns
AsBolts()
Decodes all rows of this section as TdbIO.BoltRow (size 24).
public IReadOnlyList<BoltRow> AsBolts()Returns
AsCoordsys()
Decodes all rows of this section as TdbIO.CoordsysRow (size 40).
public IReadOnlyList<CoordsysRow> AsCoordsys()Returns
AsNumAttrAttrs()
Decodes all rows of this section as TdbIO.NumAttrAttrRow (size 44).
public IReadOnlyList<NumAttrAttrRow> AsNumAttrAttrs()Returns
AsNumAttrs()
Decodes all rows of this section as TdbIO.NumAttrRow (size 24).
public IReadOnlyList<NumAttrRow> AsNumAttrs()Returns
AsObjectModifications()
Decodes all rows of this section as TdbIO.ObjectModificationRow (size 20).
public IReadOnlyList<ObjectModificationRow> AsObjectModifications()Returns
AsObjectNumberings()
Decodes all rows of this section as TdbIO.ObjectNumberingRow (size 12).
public IReadOnlyList<ObjectNumberingRow> AsObjectNumberings()Returns
AsObjectPhases()
Decodes all rows of this section as TdbIO.ObjectPhaseRow (size 8).
public IReadOnlyList<ObjectPhaseRow> AsObjectPhases()Returns
AsObjects()
Decodes all rows of this section as TdbIO.ObjectRow (size 72).
public IReadOnlyList<ObjectRow> AsObjects()Returns
AsPartAttrs()
Decodes all rows of this section as TdbIO.PartAttrRow (size 372).
public IReadOnlyList<PartAttrRow> AsPartAttrs()Returns
AsPartNumberings()
Decodes all rows of this section as TdbIO.PartNumberingRow (size 68).
public IReadOnlyList<PartNumberingRow> AsPartNumberings()Returns
AsParts()
Decodes all rows of this section as TdbIO.PartRow (size 64).
public IReadOnlyList<PartRow> AsParts()Returns
AsPoints()
Decodes all rows of this section as TdbIO.PointRow (size 32).
public IReadOnlyList<PointRow> AsPoints()Returns
AsRelations()
Decodes all rows of this section as TdbIO.RelationRow (size 60).
public IReadOnlyList<RelationRow> AsRelations()Returns
AsStrAttrAttrs()
Decodes all rows of this section as TdbIO.StrAttrAttrRow (size 120).
public IReadOnlyList<StrAttrAttrRow> AsStrAttrAttrs()Returns
AsStrAttrs()
Decodes all rows of this section as TdbIO.StrAttrRow (size 24).
public IReadOnlyList<StrAttrRow> AsStrAttrs()Returns
AsStringPool()
Decodes all rows of this section as TdbIO.StringPoolRow (size 45).
public IReadOnlyList<StringPoolRow> AsStringPool()Returns
AsWeldings()
Decodes all rows of this section as TdbIO.WeldingRow (size 24).
public IReadOnlyList<WeldingRow> AsWeldings()