Java Code Examples for org.apache.storm.tuple.Tuple#getValues()
The following examples show how to use
org.apache.storm.tuple.Tuple#getValues() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FilterBoltTest.java From bullet-storm with Apache License 2.0 | 5 votes |
private boolean tupleEquals(List<Object> actual, Tuple expectedTuple) { List<Object> expected = expectedTuple.getValues(); boolean result = isSameTuple(actual, expected); byte[] actualRecordList = (byte[]) actual.get(1); byte[] expectedRecordList = (byte[]) expected.get(1); return result && Arrays.equals(actualRecordList, expectedRecordList); }
Example 2
Source File: JoinBoltTest.java From bullet-storm with Apache License 2.0 | 5 votes |
private static boolean metadataTupleEquals(List<Object> actual, Tuple metadataTuple) { List<Object> expected = metadataTuple.getValues(); boolean result; result = actual.size() == 2; result &= actual.size() == expected.size(); result &= actual.get(0).equals(expected.get(0)); return result; }
Example 3
Source File: JoinBoltTest.java From bullet-storm with Apache License 2.0 | 4 votes |
private static boolean resultTupleEquals(List<Object> actual, Tuple expectedTuple) { List<Object> expected = expectedTuple.getValues(); return isSameResult(actual, expected) && isSameMetadata(actual.get(2), expected.get(2)); }