Return only the top N results according to the order definition. A continuous query will remove a row when it has added a new row to keep the total result set no larger than N.

Namespace: StreamBase.LiveView.API
Assembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 10.6.2.5 (10.6.2.5)

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SetTopN(
	OrderDefinition orderdef,
	int size
)
Public Sub SetTopN ( _
	orderdef As OrderDefinition, _
	size As Integer _
)
public:
void SetTopN(
	OrderDefinition^ orderdef, 
	int size
)

Parameters

orderdef
OrderDefinition
the ordering to apply to the result set before taking the top N results.
size
Int32
the number of rows to include in the result set.

See Also