private static String predicateToString(SlicePredicate predicate)
{
assert predicate != null;
// this is so awful it's kind of cool!
TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory());
try
{
return FBUtilities.bytesToHex(serializer.serialize(predicate));
}
catch (TException e)
{
throw new RuntimeException(e);
}