示例#1
0
 @Override
 protected int compareHeaders(Headers lhs, Headers rhs) {
   return compare(lhs.get(FileVersion.FILE_VERSION), rhs.get(FileVersion.FILE_VERSION));
 }
示例#2
0
 @Override
 protected long version(Headers headers) {
   return headers == null ? FileVersion.INITIAL_TX_ID : headers.get(FileVersion.FILE_VERSION).txId;
 }
示例#3
0
 @Override
 protected Headers initialHeaders(long txId) {
   return Headers.headersBuilder().put(FileVersion.FILE_VERSION, new FileVersion(txId)).headers();
 }