C# 클래스 Azavea.Open.DAO.Memory.MemoryDataReader

A data reader that iterates over the objects from the memory store, sorting and filtering as necessary to satisfy the criteria.
상속: UnqueryableDataReader
파일 보기 프로젝트 열기: azavea/net-dao 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the T:System.Data.IDataReader Object.

GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long

Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.

GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long

Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.

GetCurrentObject ( ) : MemoryObject

Gets the current row as a memory object rather than piecemeal.

GetData ( int i ) : IDataReader

Returns an T:System.Data.IDataReader for the specified column ordinal.

GetFieldType ( int i ) : Type

Gets the T:System.Type information corresponding to the type of T:System.Object that would be returned from M:System.Data.IDataRecord.GetValue(System.Int32).

GetGuid ( int i ) : System.Guid

Returns the GUID value of the specified field.

GetName ( int i ) : string

Gets the name for the field to find.

GetSchemaTable ( ) : DataTable

Returns a T:System.Data.DataTable that describes the column metadata of the T:System.Data.IDataReader.

GetValues ( object values ) : int

Gets all the attribute fields in the collection for the current record.

MemoryDataReader ( UnqueryableDaLayer layer, ClassMapping mapping, DaoCriteria criteria, IEnumerator objects ) : System

Create the data reader.

NextResult ( ) : bool

Advances the data reader to the next result, when reading the results of batch SQL statements.

보호된 메소드들

메소드 설명
ReadRawRow ( ) : IList

Returns the "row" from the data source, which we will then determine whether it matches the criteria, needs to be sorted, etc.

비공개 메소드들

메소드 설명
GetConfig ( ClassMapping mapping ) : DataReaderConfig

메소드 상세

Close() 공개 메소드

Closes the T:System.Data.IDataReader Object.
public Close ( ) : void
리턴 void

GetBytes() 공개 메소드

Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
The index passed was outside the range of 0 through .
public GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long
i int The zero-based column ordinal.
fieldOffset long The index within the field from which to start the read operation.
buffer byte The buffer into which to read the stream of bytes.
bufferoffset int The index for to start the read operation.
length int The number of bytes to read.
리턴 long

GetChars() 공개 메소드

Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.
The index passed was outside the range of 0 through .
public GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long
i int The zero-based column ordinal.
fieldoffset long The index within the row from which to start the read operation.
buffer char The buffer into which to read the stream of bytes.
bufferoffset int The index for to start the read operation.
length int The number of bytes to read.
리턴 long

GetCurrentObject() 공개 메소드

Gets the current row as a memory object rather than piecemeal.
public GetCurrentObject ( ) : MemoryObject
리턴 MemoryObject

GetData() 공개 메소드

Returns an T:System.Data.IDataReader for the specified column ordinal.
The index passed was outside the range of 0 through .
public GetData ( int i ) : IDataReader
i int The index of the field to find.
리턴 IDataReader

GetFieldType() 공개 메소드

Gets the T:System.Type information corresponding to the type of T:System.Object that would be returned from M:System.Data.IDataRecord.GetValue(System.Int32).
The index passed was outside the range of 0 through .
public GetFieldType ( int i ) : Type
i int The index of the field to find.
리턴 System.Type

GetGuid() 공개 메소드

Returns the GUID value of the specified field.
The index passed was outside the range of 0 through .
public GetGuid ( int i ) : System.Guid
i int The index of the field to find.
리턴 System.Guid

GetName() 공개 메소드

Gets the name for the field to find.
The index passed was outside the range of 0 through .
public GetName ( int i ) : string
i int The index of the field to find.
리턴 string

GetSchemaTable() 공개 메소드

Returns a T:System.Data.DataTable that describes the column metadata of the T:System.Data.IDataReader.
The is closed.
public GetSchemaTable ( ) : DataTable
리턴 System.Data.DataTable

GetValues() 공개 메소드

Gets all the attribute fields in the collection for the current record.
public GetValues ( object values ) : int
values object An array of to copy the attribute fields into.
리턴 int

MemoryDataReader() 공개 메소드

Create the data reader.
public MemoryDataReader ( UnqueryableDaLayer layer, ClassMapping mapping, DaoCriteria criteria, IEnumerator objects ) : System
layer Azavea.Open.DAO.Unqueryable.UnqueryableDaLayer Layer creating it.
mapping ClassMapping Mapping for the class stored in the data store.
criteria Azavea.Open.DAO.Criteria.DaoCriteria Criteria for which instances you want.
objects IEnumerator Iterator over the list of objects.
리턴 System

NextResult() 공개 메소드

Advances the data reader to the next result, when reading the results of batch SQL statements.
public NextResult ( ) : bool
리턴 bool

ReadRawRow() 보호된 메소드

Returns the "row" from the data source, which we will then determine whether it matches the criteria, needs to be sorted, etc.
protected ReadRawRow ( ) : IList
리턴 IList