Class Row
Inheritance
System.Object
Row
Implements
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse
Assembly: Dse.dll
Syntax
public class Row : IEnumerable<object>, IEnumerable, IRow
Constructors
Row()
Initializes a new instance of the Cassandra.Row class
Declaration
Row(Int32, Byte[][], CqlColumn[], Dictionary<String, Int32>)
Initializes a new instance of the Cassandra.Row class
Declaration
[Obsolete("This constructor is deprecated and to be removed in future versions. If you need to create mock instances of Row, use the parameter-less constructor and override GetValue<T>()")]
public Row(int protocolVersion, byte[][] values, CqlColumn[] columns, Dictionary<string, int> columnIndexes)
Parameters
Type |
Name |
Description |
System.Int32 |
protocolVersion |
|
System.Byte[][] |
values |
|
CqlColumn[] |
columns |
|
System.Collections.Generic.Dictionary<System.String, System.Int32> |
columnIndexes |
|
Properties
ColumnIndexes
Gets or sets the index of the columns within the row
Declaration
protected Dictionary<string, int> ColumnIndexes { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Int32> |
|
Columns
Gets or sets the columns information
Declaration
protected CqlColumn[] Columns { get; set; }
Property Value
Item[Int32]
Gets the stored value in the column specified by index
Declaration
public object this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Object |
|
Item[String]
Gets the stored value in the column specified by name
Declaration
public object this[string name] { get; }
Parameters
Type |
Name |
Description |
System.String |
name |
|
Property Value
Type |
Description |
System.Object |
|
Length
Gets the total amount of values inside the row
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
ProtocolVersion
Declaration
[Obsolete("This property is deprecated and to be removed in future versions.")]
protected int ProtocolVersion { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Values
Declaration
[Obsolete("This property is deprecated and to be removed in future versions.")]
protected byte[][] Values { get; set; }
Property Value
Type |
Description |
System.Byte[][] |
|
Methods
GetColumn(String)
Gets a column information by name. Returns null if not found.
Declaration
public CqlColumn GetColumn(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
GetEnumerator()
Returns an enumerator that iterates through the row values from the first position to the last one.
Declaration
public IEnumerator<object> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Object> |
|
GetValue(Type, Int32)
Gets the stored value in the column specified by index
Declaration
public object GetValue(Type type, int index)
Parameters
Type |
Name |
Description |
System.Type |
type |
Target type
|
System.Int32 |
index |
Index of the column
|
Returns
Type |
Description |
System.Object |
|
GetValue(Type, String)
Gets the stored value in the column specified by name
Declaration
public object GetValue(Type type, string name)
Parameters
Type |
Name |
Description |
System.Type |
type |
Target type
|
System.String |
name |
Name of the column
|
Returns
Type |
Description |
System.Object |
|
GetValue<T>(Int32)
Gets the stored value in the column specified by index.
Declaration
public virtual T GetValue<T>(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
Index of the column
|
Returns
Type Parameters
Name |
Description |
T |
Target type
|
GetValue<T>(String)
Gets the stored value in the column specified by name.
Declaration
public virtual T GetValue<T>(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Name of the column
|
Returns
Type Parameters
Name |
Description |
T |
Target type
|
IsNull(Int32)
Determines if the value in the column is null
Declaration
public virtual bool IsNull(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
IsNull(String)
Determines if the value in the column is null
Declaration
public bool IsNull(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable