본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
GDK::glsAttributeTableBatch 클래스 참조final

스트림이나 페이지에서 읽은 데이터 소스와 독립적인 행 배치입니다. 더 자세히 ...

#include <gdk_dll/attributes/glsAttributeTable.h>

Public 멤버 함수

 ~glsAttributeTableBatch ()
 배치를 파괴합니다. SDK가 반환한 배치는 glsReleaseAttributeTableBatch()로 해제합니다.
 glsAttributeTableBatch (const glsAttributeTableBatch &)=delete
glsAttributeTableBatch & operator= (const glsAttributeTableBatch &)=delete
int GetRowCount () const noexcept
 배치에 담긴 행 수를 조회합니다.
int GetFieldCount () const noexcept
 한 행에 있는 슬롯 개수를 조회합니다.
glsStatus GetFieldIndex (int slot, int *outIndex) const noexcept
 값 슬롯이 대응하는 스키마 필드 인덱스를 조회합니다.
glsStatus GetReference (int row, glsFeatureReference *) const noexcept
 행의 피처 ID와 읽을 때 지정한 ID 공간을 가져옵니다.
glsStatus GetValue (int row, int slot, glsAttributeValue *) const noexcept
 행의 지정 슬롯에서 속성값을 조회합니다.
uint64_t GetGeneration () const noexcept
 배치를 만든 쿼리의 세대 값을 조회합니다.
uint64_t GetSourceRevision () const noexcept
 배치를 만든 쿼리의 소스 리비전을 조회합니다.
bool GetEndOfStream () const noexcept
 배치 뒤에 행이 더 있는지 확인합니다.

Friends

class glsAttributeTableStream

상세한 설명

스트림이나 페이지에서 읽은 데이터 소스와 독립적인 행 배치입니다.

행마다 피처 참조와 투영값을 보관합니다. 슬롯 i는 GetFieldIndex(i)의 스키마 필드값입니다. 투영에 포함되지 않은 필드는 슬롯이 없고 피처에 누락된 값은 NULL입니다. GetValue()의 문자열과 바이너리를 배치가 해제되기 전까지 빌릴 수 있습니다. glsReleaseAttributeTableBatch()로 해제합니다. 범위를 벗어난 행이나 슬롯, null 출력은 InvalidArgument입니다. 배치는 glsAttributeTableStream::ReadBatch() 또는 glsAttributeTableReader::ReadPage()가 만듭니다.

멤버 함수 문서화

◆ GetEndOfStream()

bool GDK::glsAttributeTableBatch::GetEndOfStream ( ) const
noexcept

배치 뒤에 행이 더 있는지 확인합니다.

반환값
더 없으면 참입니다. 한 행을 미리 읽으므로 마지막 행을 담은 배치에서 바로 참입니다.

◆ GetFieldCount()

int GDK::glsAttributeTableBatch::GetFieldCount ( ) const
noexcept

한 행에 있는 슬롯 개수를 조회합니다.

반환값
투영된 속성 슬롯의 수입니다.

◆ GetFieldIndex()

glsStatus GDK::glsAttributeTableBatch::GetFieldIndex ( int slot,
int * outIndex ) const
noexcept

값 슬롯이 대응하는 스키마 필드 인덱스를 조회합니다.

매개변수
[in]slot0부터 시작하는 값 슬롯 인덱스입니다.
[out]outIndex0부터 시작하는 스키마 필드 인덱스를 받을 출력입니다.
반환값
조회 상태입니다.

◆ GetGeneration()

uint64_t GDK::glsAttributeTableBatch::GetGeneration ( ) const
noexcept

배치를 만든 쿼리의 세대 값을 조회합니다.

반환값
쿼리에 전달한 generation 그대로입니다.

◆ GetReference()

glsStatus GDK::glsAttributeTableBatch::GetReference ( int row,
glsFeatureReference *  ) const
noexcept

행의 피처 ID와 읽을 때 지정한 ID 공간을 가져옵니다.

매개변수
[in]row0부터 시작하는 배치의 행 인덱스입니다.
반환값
조회 상태입니다. 소스가 반환한 ID에 표지를 붙이며 공간이 실제 소스와 일치하는지 검사하지 않습니다.
이름 없는 매개변수
  1. 두 번째 인자는 행의 피처 참조를 받을 출력입니다.

◆ GetRowCount()

int GDK::glsAttributeTableBatch::GetRowCount ( ) const
noexcept

배치에 담긴 행 수를 조회합니다.

반환값
행 개수입니다. 빈 배치는 0입니다.

◆ GetSourceRevision()

uint64_t GDK::glsAttributeTableBatch::GetSourceRevision ( ) const
noexcept

배치를 만든 쿼리의 소스 리비전을 조회합니다.

반환값
쿼리에 전달한 sourceRevision 그대로입니다.

◆ GetValue()

glsStatus GDK::glsAttributeTableBatch::GetValue ( int row,
int slot,
glsAttributeValue *  ) const
noexcept

행의 지정 슬롯에서 속성값을 조회합니다.

매개변수
[in]row0부터 시작하는 행 인덱스입니다.
[in]slot0부터 시작하는 값 슬롯 인덱스입니다.
반환값
조회 상태입니다.
이름 없는 매개변수
  1. 세 번째 인자는 속성값을 받을 출력입니다. String과 Binary 내용은 배치를 해제할 때까지 빌립니다.

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: