Represents a Hypertable xml table schema.

Namespace: Hypertable.Xml
Assembly: ht4n (in ht4n.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
[XmlTypeAttribute(AnonymousType = true)]
[XmlRootAttribute(ElementName = "Schema", IsNullable = false)]
public sealed class TableSchema
<XmlTypeAttribute(AnonymousType := True)> _
<XmlRootAttribute(ElementName := "Schema", IsNullable := False)> _
Public NotInheritable Class TableSchema
[XmlTypeAttribute(AnonymousType = true)]
[XmlRootAttribute(ElementName = L"Schema", IsNullable = false)]
public ref class TableSchema sealed

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TableSchema()()()()
Initializes a new instance of the TableSchema class.
AccessGroupDefaults
Gets or sets the access group defaults.
AccessGroups
Gets or sets the access groups.
ColumnFamilyDefaults
Gets or sets the column family defaults.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Generation
Gets or sets the column family generation.
GenerationSpecified
Gets or sets a value that indicates whether the Generation property has been specified.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GroupCommitInterval
Gets or sets the group commit interval.
GroupCommitIntervalSpecified
Gets or sets a value that indicates whether the GroupCommitInterval property has been specified.
Parse(String)
Converts the xml table schema representation to a TableSchema object.
ToString()()()()
Converts the table schema to it's xml representation.
(Overrides Object..::..ToString()()()().)

Examples

The following example shows how to parse a xml schema string.
CopyC#
string schema = 
   "<Schema>"
+     "<AccessGroup name=\"default\">"
+     "<ColumnFamily>"
+         "<Name>cf</Name>"
+     "</ColumnFamily>"
+     "</AccessGroup>"
+ "</Schema>";

var tableSchema = TableSchema.Parse(schema);
The following example shows how to render a xml schema string.
CopyC#
var accessGroup = new AccessGroup { Name = "ag", ColumnFamilies = new List<ColumnFamily>() };
accessGroup.ColumnFamilies.Add(new ColumnFamily { Name = "cfa" });
accessGroup.ColumnFamilies.Add(new ColumnFamily { Name = "cfb", MaxVersions = 5, MaxVersionsSpecified = true });

var schema = new TableSchema { AccessGroups = new List<AccessGroup>() };
schema.AccessGroups.Add(accessGroup);

var xml = schema.ToString();

Inheritance Hierarchy

System..::..Object
  Hypertable.Xml..::..TableSchema

See Also