Examples of MarshalledValue


Examples of org.infinispan.marshall.MarshalledValue

    * The serialVersionUID
    */
   private static final long serialVersionUID = 8473423584918714661L;

   public void writeExternal(Object subject, ObjectOutput output) throws IOException {
      MarshalledValue mv = ((MarshalledValue) subject);
      byte[] raw = mv.getRaw();
      UnsignedNumeric.writeUnsignedInt(output, raw.length);
      output.write(raw);
      output.writeInt(mv.hashCode());
   }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      output.writeInt(mv.hashCode());
   }

   public Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator)
         throws IOException, ClassNotFoundException {
      return new MarshalledValue();
   }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      return new MarshalledValue();
   }

   public void readExternal(Object subject, ObjectInput input) throws IOException,
                                                                      ClassNotFoundException {
      MarshalledValue mv = ((MarshalledValue) subject);
      int length = UnsignedNumeric.readUnsignedInt(input);
      byte[] b = new byte[length];
      input.readFully(b);
      int hc = input.readInt();
      mv.init(b, hc);
   }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      return compactAndProcessRetVal(marshalledValues, retVal, ctx);
   }

   @Override
   public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable {
      MarshalledValue key = null;
      MarshalledValue value = null;
      if (wrapKeys) {
         if (!isTypeExcluded(command.getKey().getClass())) {
            key = createMarshalledValue(command.getKey(), ctx);
            command.setKey(key);
         }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      }
   }

   @Override
   public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable {
      MarshalledValue value = null;
      if (wrapKeys) {
         if (!isTypeExcluded(command.getKey().getClass())) {
            value = createMarshalledValue(command.getKey(), ctx);
            command.setKey(value);
         }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      return processRetVal(retVal, ctx);
   }

   @Override
   public Object visitEvictCommand(InvocationContext ctx, org.infinispan.commands.write.EvictCommand command) throws Throwable {
      MarshalledValue value = null;
      if (wrapKeys) {
         if (!isTypeExcluded(command.getKey().getClass())) {
            value = createMarshalledValue(command.getKey(), ctx);
            command.setKey(value);
         }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      return processRetVal(retVal, ctx);
   }

   @Override
   public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable {
      MarshalledValue mv = null;
      if (wrapKeys) {
         if (!isTypeExcluded(command.getKey().getClass())) {
            mv = createMarshalledValue(command.getKey(), ctx);
            command.setKey(mv);
            compact(mv);
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      return Immutables.immutableSetWrap(copy);
   }

   @Override
   public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable {
      MarshalledValue key = null, newValue = null, oldValue = null;
      if (wrapKeys && !isTypeExcluded(command.getKey().getClass())) {
         key = createMarshalledValue(command.getKey(), ctx);
         command.setKey(key);
      }
      if (wrapValues && !isTypeExcluded(command.getNewValue().getClass())) {
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      }
      return copy;
   }

   protected MarshalledValue createMarshalledValue(Object toWrap, InvocationContext ctx) {
      return new MarshalledValue(toWrap, ctx.isOriginLocal(), marshaller);
   }
View Full Code Here

Examples of org.infinispan.marshall.MarshalledValue

      return compactAndProcessRetVal(marshalledValues, retVal);
   }

   @Override
   public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable {
      MarshalledValue key = null;
      MarshalledValue value = null;
      if (!MarshalledValue.isTypeExcluded(command.getKey().getClass())) {
         key = createMarshalledValue(command.getKey(), ctx);
         command.setKey(key);
      }
      if (!MarshalledValue.isTypeExcluded(command.getValue().getClass())) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.