Example #1
0
 /**
  * Return a dummy VersionedWaveletDelta instance used as a range boundary for use in searches
  * within a NavigableSet of deltas.
  *
  * @param version the version with which to return the versioned delta
  * @return a dummy versioned delta with a null delta
  */
 private static VersionedWaveletDelta emptyDeserializedDeltaAtVersion(final long version) {
   return new VersionedWaveletDelta(null, HashedVersion.unsigned(version));
 }
Example #2
0
 /**
  * Return a dummy ProtocolWaveletDelta instance used as a range boundary for use in searches
  * within a NavigableSet of deltas.
  *
  * @param version the version to return the delta applied at
  * @return the generated dummy delta
  */
 private static ProtocolWaveletDelta emptyDeltaAtVersion(final long version) {
   return ProtocolWaveletDelta.newBuilder()
       .setAuthor("dummy")
       .setHashedVersion(WaveletOperationSerializer.serialize(HashedVersion.unsigned(version)))
       .build();
 }