Writes an Integer int as an HBase RPC parameter. @param buf The buffer to serialize the string to. @param v The value to serialize.
(final ChannelBuffer buf, final int v)
| 954 | * @param v The value to serialize. |
| 955 | */ |
| 956 | static void writeHBaseInt(final ChannelBuffer buf, final int v) { |
| 957 | buf.writeByte(5); // Code for Integer.class in HbaseObjectWritable |
| 958 | buf.writeInt(v); |
| 959 | } |
| 960 | |
| 961 | /** |
| 962 | * Writes a {@link Long long} as an HBase RPC parameter. |