Sorting tuples in TIBCO ActiveSpaces using the .Net API on client side for smaller data sets.

Sorting tuples in TIBCO ActiveSpaces using the .Net API on client side for smaller data sets.

book

Article ID: KB0089468

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
How to sort tuples in TIBCO ActiveSpaces using the  .Net API on the client side for smaller data sets?

Resolution

Sorting is not a supported feature with TIBCO ActiveSpaces 2.x.  This feature is currently under development. For now, sorting can be done on the client side. Read data from the browser and sort using Collections with a TupleComparator taking fields in sorting order.  Attached is a .NET example program (Filename:TupleComparator.cs ,Program.cs) which can be used for small data sets (number of returns from a browser). To sort more than 1MB of tuples, use a selective filter (browser).

Here is a code snippet from the sample that uses the TupleComparator:

TupleComparator tc = new TupleComparator(space, fieldNames);
Browser browser = space.Browse(Com.Tibco.As.Space.Browser.BrowserDef.BrowserType.GET, browserDef);
foreach (Tuple t in browser.OrderBy(t => t, tc))

Console.WriteLine(t);


Again, this is sorting on the client side which is useful if there is not a lot of data (small data set) to be sorted.

Issue/Introduction

Sorting tuples in TIBCO ActiveSpaces using the .Net API on client side for smaller data sets.

Additional Information


Attachments

Sorting tuples in TIBCO ActiveSpaces using the .Net API on client side for smaller data sets. get_app
Sorting tuples in TIBCO ActiveSpaces using the .Net API on client side for smaller data sets. get_app