List of usage examples for java.lang Byte valueOf
public static Byte valueOf(String s) throws NumberFormatException
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitNot.java
public Byte evaluate(Byte a) { if (a == null) return null; Byte r = Byte.valueOf((byte) ~a.byteValue()); return r;/*from w w w .j a va2 s .c om*/ }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPNegative.java
public Byte evaluate(Byte a) { if (a == null) return null; Byte r = Byte.valueOf((byte) -a.byteValue()); return r;//from w ww. j a v a 2s .c o m }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitAnd.java
public Byte evaluate(Byte a, Byte b) { if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a.byteValue() & b.byteValue())); }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitXor.java
public Byte evaluate(Byte a, Byte b) { if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a.byteValue() ^ b.byteValue())); }
From source file:org.apache.hadoop.hive.ql.udf.UDFToByte.java
public Byte evaluate(Integer i) { if (i == null) { return null; } else {//from w ww . j a v a 2 s . c o m return Byte.valueOf(i.byteValue()); } }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitOr.java
public Byte evaluate(Byte a, Byte b) { if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a.byteValue() | b.byteValue())); }
From source file:com.wabacus.system.datatype.ByteType.java
public Object getColumnValue(ResultSet rs, String column, AbsDatabaseType dbtype) throws SQLException { return Byte.valueOf(rs.getByte(column)); }
From source file:Base64Encoder.java
private boolean out(ByteBuffer bb, int outValue) { if (bb.remaining() > 0) { bb.put((byte) outValue); return true; } else {//from w ww .ja v a 2 s . c o m excessByte = Byte.valueOf((byte) outValue); return false; } }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPMod.java
public Byte evaluate(Byte a, Byte b) { // LOG.info("Get input " + a.getClass() + ":" + a + " " + b.getClass() + ":" + b); if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a % b)); }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPMinus.java
public Byte evaluate(Byte a, Byte b) { // LOG.info("Get input " + a.getClass() + ":" + a + " " + b.getClass() + ":" + b); if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a - b)); }