Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.ProtocolWaveletOperation


  public void setDocFactory(DocumentFactory<?> docFactory) {
    this.docFactory = docFactory;
  }

  public String serializeOperation(WaveletOperation op) {
    ProtocolWaveletOperation opMessage = OperationSerializer.createMessage(op);
    return serializer.serializeOp(opMessage);
  }
View Full Code Here


      documentDiffMap.put(documentId, docDiff);
    }

    long version = intermediateVersion;
    for (String mutation : tailMutations) {
      ProtocolWaveletOperation op = serializer.deserializeDelta(mutation).getOperation();

      if (op.hasMutateDocument()) {
        MutateDocument mutateDocument = op.getMutateDocument();
        String documentId = mutateDocument.getDocumentId();

        DocDiff docDiff = documentDiffMap.get(documentId);
        if (docDiff == null) {
          docDiff = new DocDiff(lastReadVersions.get(documentId, 0L));
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.ProtocolWaveletOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.