hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Corgan <mcor...@hotpads.com>
Subject ByteBuffer usage
Date Tue, 20 Sep 2011 19:03:45 GMT
Ryan said this on an earlier email:

So if the HCell or whatever ends up returning ByteBuffers, then that plays
straight in to scatter/gather NIO calls, and if some of them are DBB, then
so much the merrier.

For example, the thrift stuff takes ByteBuffers when its calling for a byte

I've also heard others mention trickiness getting the KeyValues from server
to client.  What is the general method right now?  Does it use ByteBuffers
or OutputStreams, operate in batches, achieve zero-copy, stream things to
the client, etc...  What would the ideal be?

If the KeyValue interface supported these 3 methods, would that be good?

int appendToV1ByteArray(byte[] output, int offset);
int appendToV1ByteBuffer(ByteBuffer buffer);
int appendToV1OutputStream(OutputStream os);

Ryan - i guess i'm not sure how the scatter/gather NIO calls work or where
they come into play.  Can you shed some light there?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message