MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / writeHBaseInt

Method writeHBaseInt

src/HBaseRpc.java:956–959  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

serializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected