C# 클래스 PhoenixSharp.PhoenixClient

상속: IPhoenixClient
파일 보기 프로젝트 열기: Azure/hdinsight-phoenix-sharp 1 사용 예제들

공개 메소드들

메소드 설명
CatalogsRequestAsync ( string connectionId, RequestOptions options ) : Task

This request is used to fetch the available catalog names in the database.

CloseConnectionRequestAsync ( string connectionId, RequestOptions options ) : Task

This request is used to close the Connection object in the Phoenix query server identified by the given IDs.

CloseStatementRequestAsync ( string connectionId, uint statementId, RequestOptions options ) : Task

This request is used to close the Statement object in the Phoenix query server identified by the given IDs.

ColumnsRequestAsync ( string catalog, string schemaPattern, string tableNamePattern, string columnNamePattern, string connectionId, RequestOptions options ) : Task

This request is used to fetch the columns in this database.

CommitRequestAsync ( string connectionId, RequestOptions options ) : Task

This request is used to issue a commit on the Connection in the Phoenix query server identified by the given ID.

ConnectionSyncRequestAsync ( string connectionId, ConnectionProperties props, RequestOptions options ) : Task

This request is used to ensure that the client and server have a consistent view of the database properties.

CreateStatementRequestAsync ( string connectionId, RequestOptions options ) : Task

This request is used to create a new Statement in the Phoenix query server.

ExecuteBatchRequestAsync ( string connectionId, uint statementId, pbc updates, RequestOptions options ) : Task

This request is used to execute a batch of updates against a PreparedStatement.

ExecuteRequestAsync ( StatementHandle statementHandle, pbc parameterValues, ulong firstFrameMaxSize, bool hasParameterValues, RequestOptions options ) : Task

This request is used to execute a PreparedStatement, optionally with values to bind to the parameters in the Statement.

FetchRequestAsync ( string connectionId, uint statementId, ulong offset, int frameMaxSize, RequestOptions options ) : Task

This request is used to fetch a batch of rows from a Statement previously created.

OpenConnectionRequestAsync ( string connectionId, string>.pbc info, RequestOptions options ) : Task

This request is used to open a new Connection in the Phoenix query server.

PhoenixClient ( ClusterCredentials credentials ) : Interfaces

Initializes a new instance of the PhoenixClient class. If the client is used within a VNET or on an on-premise cluster, no cluster credentials required. Pass null in this case.

PrepareAndExecuteBatchRequestAsync ( string connectionId, uint statementId, pbc sqlCommands, RequestOptions options ) : Task

This request is used as short-hand to create a Statement and execute a batch of updates against that Statement.

PrepareAndExecuteRequestAsync ( string connectionId, string sql, uint statementId, long maxRowsTotal, int firstFrameMaxSize, RequestOptions options ) : Task

This request is used as a short-hand for create a Statement and fetching the first batch of results in a single call without any parameter substitution.

PrepareRequestAsync ( string connectionId, string sql, long maxRowsTotal, RequestOptions options ) : Task

This request is used to create create a new Statement with the given query in the Phoenix query server.

RollbackRequestAsync ( string connectionId, RequestOptions options ) : Task

This request is used to issue a rollback on the Connection in the Phoenix query server identified by the given ID.

SchemasRequestAsync ( string catalog, string schemaPattern, string connectionId, RequestOptions options ) : Task

This request is used to fetch the table types available in this database.

TableTypesRequestAsync ( string connectionId, RequestOptions options ) : Task

This request is used to fetch the table types available in this database.

TablesRequestAsync ( string catalog, string schemaPattern, string tableNamePattern, pbc typeList, bool hasTypeList, string connectionId, RequestOptions options ) : Task

This request is used to fetch the tables available in this database filtered by the provided criteria.

비공개 메소드들

메소드 설명
ExecuteMethodAsync ( string method, byte request, RequestOptions options ) : Task
PostRequestAsync ( byte request, RequestOptions options ) : Task

메소드 상세

CatalogsRequestAsync() 공개 메소드

This request is used to fetch the available catalog names in the database.
public CatalogsRequestAsync ( string connectionId, RequestOptions options ) : Task
connectionId string
options RequestOptions
리턴 Task

CloseConnectionRequestAsync() 공개 메소드

This request is used to close the Connection object in the Phoenix query server identified by the given IDs.
public CloseConnectionRequestAsync ( string connectionId, RequestOptions options ) : Task
connectionId string
options RequestOptions
리턴 Task

CloseStatementRequestAsync() 공개 메소드

This request is used to close the Statement object in the Phoenix query server identified by the given IDs.
public CloseStatementRequestAsync ( string connectionId, uint statementId, RequestOptions options ) : Task
connectionId string
statementId uint
options RequestOptions
리턴 Task

ColumnsRequestAsync() 공개 메소드

This request is used to fetch the columns in this database.
public ColumnsRequestAsync ( string catalog, string schemaPattern, string tableNamePattern, string columnNamePattern, string connectionId, RequestOptions options ) : Task
catalog string
schemaPattern string
tableNamePattern string
columnNamePattern string
connectionId string
options RequestOptions
리턴 Task

CommitRequestAsync() 공개 메소드

This request is used to issue a commit on the Connection in the Phoenix query server identified by the given ID.
public CommitRequestAsync ( string connectionId, RequestOptions options ) : Task
connectionId string
options RequestOptions
리턴 Task

ConnectionSyncRequestAsync() 공개 메소드

This request is used to ensure that the client and server have a consistent view of the database properties.
public ConnectionSyncRequestAsync ( string connectionId, ConnectionProperties props, RequestOptions options ) : Task
connectionId string
props ConnectionProperties
options RequestOptions
리턴 Task

CreateStatementRequestAsync() 공개 메소드

This request is used to create a new Statement in the Phoenix query server.
public CreateStatementRequestAsync ( string connectionId, RequestOptions options ) : Task
connectionId string
options RequestOptions
리턴 Task

ExecuteBatchRequestAsync() 공개 메소드

This request is used to execute a batch of updates against a PreparedStatement.
public ExecuteBatchRequestAsync ( string connectionId, uint statementId, pbc updates, RequestOptions options ) : Task
connectionId string
statementId uint
updates pbc
options RequestOptions
리턴 Task

ExecuteRequestAsync() 공개 메소드

This request is used to execute a PreparedStatement, optionally with values to bind to the parameters in the Statement.
public ExecuteRequestAsync ( StatementHandle statementHandle, pbc parameterValues, ulong firstFrameMaxSize, bool hasParameterValues, RequestOptions options ) : Task
statementHandle StatementHandle
parameterValues pbc
firstFrameMaxSize ulong
hasParameterValues bool
options RequestOptions
리턴 Task

FetchRequestAsync() 공개 메소드

This request is used to fetch a batch of rows from a Statement previously created.
public FetchRequestAsync ( string connectionId, uint statementId, ulong offset, int frameMaxSize, RequestOptions options ) : Task
connectionId string
statementId uint
offset ulong
frameMaxSize int
options RequestOptions
리턴 Task

OpenConnectionRequestAsync() 공개 메소드

This request is used to open a new Connection in the Phoenix query server.
public OpenConnectionRequestAsync ( string connectionId, string>.pbc info, RequestOptions options ) : Task
connectionId string
info string>.pbc
options RequestOptions
리턴 Task

PhoenixClient() 공개 메소드

Initializes a new instance of the PhoenixClient class. If the client is used within a VNET or on an on-premise cluster, no cluster credentials required. Pass null in this case.
public PhoenixClient ( ClusterCredentials credentials ) : Interfaces
credentials ClusterCredentials
리턴 Interfaces

PrepareAndExecuteBatchRequestAsync() 공개 메소드

This request is used as short-hand to create a Statement and execute a batch of updates against that Statement.
public PrepareAndExecuteBatchRequestAsync ( string connectionId, uint statementId, pbc sqlCommands, RequestOptions options ) : Task
connectionId string
statementId uint
sqlCommands pbc
options RequestOptions
리턴 Task

PrepareAndExecuteRequestAsync() 공개 메소드

This request is used as a short-hand for create a Statement and fetching the first batch of results in a single call without any parameter substitution.
public PrepareAndExecuteRequestAsync ( string connectionId, string sql, uint statementId, long maxRowsTotal, int firstFrameMaxSize, RequestOptions options ) : Task
connectionId string
sql string
statementId uint
maxRowsTotal long
firstFrameMaxSize int
options RequestOptions
리턴 Task

PrepareRequestAsync() 공개 메소드

This request is used to create create a new Statement with the given query in the Phoenix query server.
public PrepareRequestAsync ( string connectionId, string sql, long maxRowsTotal, RequestOptions options ) : Task
connectionId string
sql string
maxRowsTotal long
options RequestOptions
리턴 Task

RollbackRequestAsync() 공개 메소드

This request is used to issue a rollback on the Connection in the Phoenix query server identified by the given ID.
public RollbackRequestAsync ( string connectionId, RequestOptions options ) : Task
connectionId string
options RequestOptions
리턴 Task

SchemasRequestAsync() 공개 메소드

This request is used to fetch the table types available in this database.
public SchemasRequestAsync ( string catalog, string schemaPattern, string connectionId, RequestOptions options ) : Task
catalog string
schemaPattern string
connectionId string
options RequestOptions
리턴 Task

TableTypesRequestAsync() 공개 메소드

This request is used to fetch the table types available in this database.
public TableTypesRequestAsync ( string connectionId, RequestOptions options ) : Task
connectionId string
options RequestOptions
리턴 Task

TablesRequestAsync() 공개 메소드

This request is used to fetch the tables available in this database filtered by the provided criteria.
public TablesRequestAsync ( string catalog, string schemaPattern, string tableNamePattern, pbc typeList, bool hasTypeList, string connectionId, RequestOptions options ) : Task
catalog string
schemaPattern string
tableNamePattern string
typeList pbc
hasTypeList bool
connectionId string
options RequestOptions
리턴 Task