@Override protected String deserializeData(String value) throws RyaTypeResolverException { try { return LONG_STRING_TYPE_ENCODER.decode(value).toString(); } catch (TypeDecodingException e) { throw new RyaTypeResolverException("Exception occurred deserializing data[" + value + "]", e); } }
@Override protected String serializeData(String data) throws RyaTypeResolverException { try { return LONG_STRING_TYPE_ENCODER.encode(Long.parseLong(data)); } catch (NumberFormatException e) { throw new RyaTypeResolverException("Exception occurred serializing data[" + data + "]", e); } catch (TypeEncodingException e) { throw new RyaTypeResolverException("Exception occurred serializing data[" + data + "]", e); } }