public static ExprNodeGenericFuncDesc deserializeExpression(String s) { byte[] bytes = Base64.decodeBase64(s.getBytes(StandardCharsets.UTF_8)); return deserializeExpressionFromKryo(bytes); }
public static ExprNodeGenericFuncDesc deserializeExpression(String s) { byte[] bytes; try { bytes = Base64.decodeBase64(s.getBytes("UTF-8")); } catch (UnsupportedEncodingException ex) { throw new RuntimeException("UTF-8 support required", ex); } return deserializeExpressionFromKryo(bytes); }
private ExprNodeGenericFuncDesc deserializeExpr(byte[] exprBytes) throws MetaException { ExprNodeGenericFuncDesc expr = null; try { expr = SerializationUtilities.deserializeExpressionFromKryo(exprBytes); } catch (Exception ex) { LOG.error("Failed to deserialize the expression", ex); throw new MetaException(ex.getMessage()); } if (expr == null) { throw new MetaException("Failed to deserialize expression - ExprNodeDesc not present"); } return expr; }
private ExprNodeGenericFuncDesc deserializeExpr(byte[] exprBytes) throws MetaException { ExprNodeGenericFuncDesc expr = null; try { expr = SerializationUtilities.deserializeExpressionFromKryo(exprBytes); } catch (Exception ex) { LOG.error("Failed to deserialize the expression", ex); throw new MetaException(ex.getMessage()); } if (expr == null) { throw new MetaException("Failed to deserialize expression - ExprNodeDesc not present"); } return expr; }