@Override
 public void read(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   final ObjectDataInput in = reader.getRawDataInput();
   key = new Data();
   key.readData(in);
 }
 @Override
 public void read(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   threadId = reader.readLong("threadId");
   final ObjectDataInput in = reader.getRawDataInput();
   key = in.readData();
 }
 @Override
 public void read(PortableReader reader) throws IOException {
   super.read(reader);
   ttlMillis = reader.readLong("ttlMillis");
   ObjectDataInput in = reader.getRawDataInput();
   key = in.readData();
   value = in.readData();
 }
  @Override
  public void read(PortableReader reader) throws IOException {
    threadId = reader.readLong("tid");
    ttl = reader.readLong("ttl");
    timeout = reader.readLong("timeout");

    ObjectDataInput in = reader.getRawDataInput();
    key = in.readData();
  }
 public void read(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   int size = reader.readInt("size");
   if (size > 0) {
     ObjectDataInput input = reader.getRawDataInput();
     for (int i = 0; i < size; i++) {
       Data key = input.readData();
       keys.add(key);
     }
   }
 }
 public void readPortable(PortableReader reader) throws IOException {
   int size = reader.readInt("s");
   final ObjectDataInput in = reader.getRawDataInput();
   entrySet = new HashSet<Map.Entry>(size);
   for (int i = 0; i < size; i++) {
     Data key = new Data();
     Data value = new Data();
     key.readData(in);
     value.readData(in);
     entrySet.add(new AbstractMap.SimpleEntry(key, value));
   }
 }
 @Override
 public void read(PortableReader reader) throws IOException {
   name = reader.readUTF("n");
   int size = reader.readInt("size");
   keys = new HashSet<Data>();
   ObjectDataInput input = reader.getRawDataInput();
   for (int i = 0; i < size; i++) {
     Data key = new Data();
     key.readData(input);
     keys.add(key);
   }
   processor = input.readObject();
 }
 @Override
 public void read(PortableReader reader) throws IOException {
   super.read(reader);
   ObjectDataInput in = reader.getRawDataInput();
   key = in.readObject();
 }
 public void read(PortableReader reader) throws IOException {
   super.read(reader);
   final ObjectDataInput in = reader.getRawDataInput();
   key = new Data();
   key.readData(in);
 }
示例#10
0
 public void readPortable(PortableReader reader) throws IOException {
   super.readPortable(reader);
   index = reader.readInt("i");
   value = new Data();
   value.readData(reader.getRawDataInput());
 }