public TPathsDump deepCopy() { return new TPathsDump(this); }
@Override public TPathsDump createPathsDump() { AtomicInteger counter = new AtomicInteger(0); Map<Integer, TPathEntry> idMap = new HashMap<Integer, TPathEntry>(); Tuple tRootTuple = createTPathEntry(hmsPaths.getRootEntry(), counter, idMap); idMap.put(tRootTuple.id, tRootTuple.entry); cloneToTPathEntry(hmsPaths.getRootEntry(), tRootTuple.entry, counter, idMap); return new TPathsDump(tRootTuple.id, idMap); }
/** * Performs a deep copy on <i>other</i>. */ public TPathsUpdate(TPathsUpdate other) { __isset_bitfield = other.__isset_bitfield; this.hasFullImage = other.hasFullImage; if (other.isSetPathsDump()) { this.pathsDump = new TPathsDump(other.pathsDump); } this.seqNum = other.seqNum; if (other.isSetPathChanges()) { List<TPathChanges> __this__pathChanges = new ArrayList<TPathChanges>(); for (TPathChanges other_element : other.pathChanges) { __this__pathChanges.add(new TPathChanges(other_element)); } this.pathChanges = __this__pathChanges; } }
case 2: // PATHS_DUMP if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.pathsDump = new TPathsDump(); struct.pathsDump.read(iprot); struct.setPathsDumpIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TPathsUpdate struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.hasFullImage = iprot.readBool(); struct.setHasFullImageIsSet(true); struct.seqNum = iprot.readI64(); struct.setSeqNumIsSet(true); { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.pathChanges = new ArrayList<TPathChanges>(_list63.size); for (int _i64 = 0; _i64 < _list63.size; ++_i64) { TPathChanges _elem65; // required _elem65 = new TPathChanges(); _elem65.read(iprot); struct.pathChanges.add(_elem65); } } struct.setPathChangesIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.pathsDump = new TPathsDump(); struct.pathsDump.read(iprot); struct.setPathsDumpIsSet(true); } } }