17.10 - getQueryBandNumPairs(String QBandBuf, int QB_SearchType) - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

Returns the number of name-value pairs in the query band that meet the search criteria specified by the QB_SearchType argument.

Syntax

getQueryBandNumPairs(String QBandBuf, int QB_SearchType)

Syntax Elements

QBandBuf
A query band string, where the query band can be:
  • Returned by QueryBand.getQueryBand()
  • Retrieved from the DBC.DBQLogTbl.QueryBand column
  • Specified by the caller
QB_SearchType
Specifies whether getQueryBandNumPairs() searches for name-value pairs in the transaction, session, and/or profile query band.
If the value is...
  • QueryBand.QB_FIRST, then return the number of name-value pairs in the transaction, session, and profile query bands, where each name is unique. If the transaction, session, or profile query bands contain the same name, getQueryBandNumPairs() counts only one name-value pair.
  • QueryBand.QB_TXN, then return the number of name-value pairs in the transaction query band.
  • QueryBand.QB_SESSION, then return the number of name-value pairs in the session query band.
  • QueryBand.QB_PROFILE, then return the number of name-value pairs in the profile query band.