예제 #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();
 }