Esempio n. 1
0
 /**
  * Reads the values of each field.
  *
  * @param in The input to read from.
  * @throws IOException When reading the input fails.
  */
 public void readFields(DataInput in) throws IOException {
   m_tablename = Serialization.readByteArray(in);
   m_startrow = ByteBuffer.wrap(Serialization.readByteArray(in));
   m_endrow = ByteBuffer.wrap(Serialization.readByteArray(in));
   m_hostname = Serialization.toString(Serialization.readByteArray(in));
 }
Esempio n. 2
0
 /**
  * Reads the values of each field.
  *
  * @param in The input to read from.
  * @throws IOException When reading the input fails.
  */
 public void readFields(final DataInput in) throws IOException {
   mRowKey = Serialization.readByteArray(in);
   mSerializedCells = ByteBuffer.wrap(Serialization.readByteArray(in));
   mSerializedCells.mark();
   mReader.reset(mSerializedCells);
 }