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

Method serializeOld

src/AppendRequest.java:594–606  ·  view source on GitHub ↗

Serializes this request for HBase 0.94 and before.

(final byte server_version)

Source from the content-addressed store, hash-verified

592
593 /** Serializes this request for HBase 0.94 and before. */
594 private ChannelBuffer serializeOld(final byte server_version) {
595 final ChannelBuffer buf = newBuffer(server_version,
596 predictSerializedSize());
597 buf.writeInt(2); // Number of parameters.
598
599 // 1st param: byte array containing region name
600 writeHBaseByteArray(buf, region.name());
601
602 // 2nd param: Append object
603 serializeInto(buf);
604
605 return buf;
606 }
607
608 /** Serialize the raw underlying `Append' into the given buffer. */
609 void serializeInto(final ChannelBuffer buf) {

Callers 1

serializeMethod · 0.95

Calls 5

predictSerializedSizeMethod · 0.95
serializeIntoMethod · 0.95
newBufferMethod · 0.80
writeHBaseByteArrayMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected