Class Fetch
Fetch next portion of data from a cursor
@startuml client -> server: Fetch alt Success ... none or partial Resultsets or full Resultsets ... client <- server: StmtExecuteOk else client <- server: Error end @enduml
Inheritance
System.Object
Fetch
Implements
Google.Protobuf.IMessage <Fetch>
System.IEquatable <Fetch>
Google.Protobuf.IDeepCloneable <Fetch>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage
Namespace: Mysqlx.Cursor
Assembly: MySql.Data.dll
Version: 9.3.0
Syntax
public sealed class Fetch : IMessage<Fetch>, IEquatable<Fetch>, IDeepCloneable<Fetch>, IBufferMessage, IMessage
Constructors
Fetch()
Declaration
public Fetch()
Fetch(Fetch)
Declaration
public Fetch(Fetch other)
Parameters
Type | Name | Description |
---|---|---|
Fetch | other |
Fields
CursorIdFieldNumber
Field number for the "cursor_id" field.
Declaration
public const int CursorIdFieldNumber = 1
Field Value
Type | Description |
---|---|
System. |
FetchRowsFieldNumber
Field number for the "fetch_rows" field.
Declaration
public const int FetchRowsFieldNumber = 5
Field Value
Type | Description |
---|---|
System. |
Properties
CursorId
- client-side assigned cursor ID; must be already open
Declaration
public uint CursorId { get; set; }
Property Value
Type | Description |
---|---|
System. |
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type | Description |
---|---|
Google. |
FetchRows
- number of rows that should be retrieved from sequential cursor
Declaration
public ulong FetchRows { get; set; }
Property Value
Type | Description |
---|---|
System. |
HasCursorId
Gets whether the "cursor_id" field is set
Declaration
public bool HasCursorId { get; }
Property Value
Type | Description |
---|---|
System. |
HasFetchRows
Gets whether the "fetch_rows" field is set
Declaration
public bool HasFetchRows { get; }
Property Value
Type | Description |
---|---|
System. |
Parser
Declaration
public static MessageParser<Fetch> Parser { get; }
Property Value
Type | Description |
---|---|
Google. |
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type | Description |
---|---|
System. |
ClearCursorId()
Clears the value of the "cursor_id" field
Declaration
public void ClearCursorId()
ClearFetchRows()
Clears the value of the "fetch_rows" field
Declaration
public void ClearFetchRows()
Clone()
Declaration
public Fetch Clone()
Returns
Type | Description |
---|---|
Fetch |
Equals(Fetch)
Declaration
public bool Equals(Fetch other)
Parameters
Type | Name | Description |
---|---|---|
Fetch | other |
Returns
Type | Description |
---|---|
System. |
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System. |
other |
Returns
Type | Description |
---|---|
System. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Overrides
System.Object.GetHashCode()
MergeFrom(CodedInputStream)
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type | Name | Description |
---|---|---|
Google. |
input |
MergeFrom(Fetch)
Declaration
public void MergeFrom(Fetch other)
Parameters
Type | Name | Description |
---|---|---|
Fetch | other |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type | Name | Description |
---|---|---|
Google. |
output |
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
Declaration
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameters
Type | Name | Description |
---|---|---|
Google. |
input |
IBufferMessage.InternalWriteTo(ref WriteContext)
Declaration
void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameters
Type | Name | Description |
---|---|---|
Google. |
output |
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type | Description |
---|---|
Google. |
Implements
Google.Protobuf.IMessage<T>
System.IEquatable<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage