Ejemplo n.º 1
0
  private byte[] createRowKey(RowLogMessage message, String subscription, boolean problematic) {
    byte[] rowKey = new byte[0];
    if (problematic) {
      rowKey = PROBLEMATIC_MARKER;
    }
    rowKey = Bytes.add(rowKey, Bytes.toBytes(subscription));

    rowKey = Bytes.add(rowKey, Bytes.toBytes(message.getTimestamp()));
    rowKey = Bytes.add(rowKey, Bytes.toBytes(message.getSeqNr()));
    rowKey = Bytes.add(rowKey, message.getRowKey());

    return rowKey;
  }
Ejemplo n.º 2
0
 private byte[] encodeMessage(RowLogMessage message) {
   return message.getData();
 }