protected void persist(Context output, long count, byte[][] prev, byte[][] current, byte[] id)
        throws IOException {
        for (int i = 0; i < current.length; i++) {

          if (i % 100 == 0) {
            // Tickle progress every so often else maprunner will think us hung
            output.progress();
          }

          Put put = new Put(current[i]);
          put.addColumn(FAMILY_NAME, COLUMN_PREV, prev == null ? NO_KEY : prev[i]);

          if (count >= 0) {
            put.addColumn(FAMILY_NAME, COLUMN_COUNT, Bytes.toBytes(count + i));
          }
          if (id != null) {
            put.addColumn(FAMILY_NAME, COLUMN_CLIENT, id);
          }
          // See if we are to write multiple columns.
          if (this.multipleUnevenColumnFamilies) {
            // Use any column name.
            put.addColumn(TINY_FAMILY_NAME, TINY_FAMILY_NAME, this.tinyValue);
            // Use any column name.
            put.addColumn(BIG_FAMILY_NAME, BIG_FAMILY_NAME, this.bigValue);
          }
          mutator.mutate(put);
        }

        mutator.flush();
      }
Some ASCII art time:
<p>
[ . . . ] represents one batch of random longs of length WIDTH

<pre>
               _________________________
              |                  ______ |
              |                 |      ||
            .-+-----------------+-----.||
            | |                 |     |||
first   = [ . . . . . . . . . . . ]   |||
            ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^     |||
            | | | | | | | | | | |     |||
prev    = [ . . . . . . . . . . . ]   |||
            ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^     |||
            | | | | | | | | | | |     |||
current = [ . . . . . . . . . . . ]   |||
                                      |||
...                                   |||
                                      |||
last    = [ . . . . . . . . . . . ]   |||
            ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^_____|||
            |                 |________||
            |___________________________|
</pre>
hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java