Products | Versions |
---|---|
TIBCO ActiveSpaces | - |
Not Applicable | - |
Description:
How to sort tuples in TIBCO ActiveSpaces using the .Net API on the client side for smaller data sets?
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);Console.WriteLine(t);