doesn't write mean set, and are there multi-sets?  the write op is an instance of SingleKeyedOperation, so the .next() would get the only key