public void writePortable(PortableWriter writer) throws IOException {
   writer.writeInt("s", entrySet.size());
   final ObjectDataOutput out = writer.getRawDataOutput();
   for (Map.Entry<Data, Data> entry : entrySet) {
     Data key = entry.getKey();
     Data value = entry.getValue();
     key.writeData(out);
     value.writeData(out);
   }
 }
 protected void writeInternal(ObjectDataOutput out) throws IOException {
   out.writeUTF(name);
   dataKey.writeData(out);
   out.writeLong(threadId);
   IOUtil.writeNullableData(out, dataValue);
   out.writeLong(ttl);
 }
 @Override
 public void writeData(ObjectDataOutput out) throws IOException {
   super.writeData(out);
   dataKey.writeData(out);
   IOUtil.writeNullableData(out, dataNewValue);
   IOUtil.writeNullableData(out, dataOldValue);
 }
 @Override
 protected void writeInternal(ObjectDataOutput out) throws IOException {
   super.writeInternal(out);
   out.writeBoolean(retain);
   out.writeInt(valueSet.size());
   for (Data value : valueSet) {
     value.writeData(out);
   }
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeInt("size", keys.size());
   ObjectDataOutput output = writer.getRawDataOutput();
   for (Data key : keys) {
     key.writeData(output);
   }
   output.writeObject(processor);
 }
 @Override
 protected void writeInternal(ObjectDataOutput out) throws IOException {
   super.writeInternal(out);
   final List<Data> keyValueSequence = this.keyValueSequence;
   final int size = keyValueSequence.size();
   out.writeInt(size);
   for (Data data : keyValueSequence) {
     data.writeData(out);
   }
 }
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeInt("size", keys.size());
   if (!keys.isEmpty()) {
     ObjectDataOutput output = writer.getRawDataOutput();
     for (Data key : keys) {
       key.writeData(output);
     }
   }
 }
 public void writeData(ObjectDataOutput out) throws IOException {
   out.writeInt(map.size());
   for (Map.Entry<Data, Collection<Data>> entry : map.entrySet()) {
     entry.getKey().writeData(out);
     Collection<Data> coll = entry.getValue();
     out.writeInt(coll.size());
     for (Data data : coll) {
       data.writeData(out);
     }
   }
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
 protected void writeInternal(ObjectDataOutput out) throws IOException {
   super.writeInternal(out);
   out.writeLong(recordId);
   out.writeInt(index);
   value.writeData(out);
 }
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeLong("threadId", threadId);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
Beispiel #12
0
 @Override
 public void writeData(ObjectDataOutput out) throws IOException {
   super.writeData(out);
   value.writeData(out);
 }
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
 @Override
 protected void writeInternal(ObjectDataOutput out) throws IOException {
   super.writeInternal(out);
   value.writeData(out);
 }
Beispiel #15
0
 public void writePortable(PortableWriter writer) throws IOException {
   super.writePortable(writer);
   writer.writeInt("i", index);
   value.writeData(writer.getRawDataOutput());
 }