on 02-25-2016 1:21 PM
I have solved this by my self with simple UDF:
it should by all values of Queue
public void countContext(String[] var1, ResultList result, Container container) throws StreamTransformationException{
String temp = " ";
int j = 1;
for (int i=0; i<var1.length; i++)
{
if(!var1[i].equals(ResultList.CC))
{
temp = Integer.toString(j);
result.addValue(temp);
// result.addContextChange();
}
else
{
// result.addValue(temp);
result.addContextChange();
j++;
}
}
}
And my mapping as below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.