public ZNRecord toZNRecord() { ZNRecord record = new ZNRecord(_tableNameWithType); record.setListFields(_parentGroupToChildrenGroupsMap); Map<String, Map<String, String>> groupToSegmentsMap = new HashMap<>(); for (Map.Entry<Integer, Map<String, List<String>>> entry : _levelToGroupToSegmentsMap.entrySet()) { String key = LEVEL_KEY_PREFIX + entry.getKey(); Map<String, String> groupSegmentsForLevel = new HashMap<>(); for (Map.Entry<String, List<String>> groupEntry : entry.getValue().entrySet()) { String groupId = groupEntry.getKey(); String segments = String.join(SEGMENT_DELIMITER, groupEntry.getValue()); groupSegmentsForLevel.put(groupId, segments); } groupToSegmentsMap.put(key, groupSegmentsForLevel); } record.setMapFields(groupToSegmentsMap); return record; }
/** * Set a group of heath statistics, grouped by the statistic * @param healthFields a map of statistic name, the corresponding entity, and the value */ public void setHealthFields(Map<String, Map<String, String>> healthFields) { _record.setMapFields(healthFields); }
/** * Set a group of heath statistics, grouped by the statistic * @param healthFields a map of statistic name, the corresponding entity, and the value */ public void setHealthFields(Map<String, Map<String, String>> healthFields) { _record.setMapFields(healthFields); }
result.setMapFields(idealStateMap); return result;
result.setMapFields(idealStateMap); return result;
record.setSimpleFields(simpleFields); record.setListFields(listFields); record.setMapFields(mapFields); record.setRawPayload(rawPayload); } catch (Exception e) {
record.setSimpleFields(simpleFields); record.setListFields(listFields); record.setMapFields(mapFields); record.setRawPayload(rawPayload); } catch (Exception e) {
record.setMapFields(partitionReport);
record.setMapFields(partitionReport);
idealState.getRecord().setListFields(newIdealState.getListFields()); idealState.getRecord().setMapFields(newIdealState.getMapFields()); idealState.getRecord().setMapFields(newIdealState.getMapFields());
idealState.getRecord().setListFields(newIdealState.getListFields()); idealState.getRecord().setMapFields(newIdealState.getMapFields()); idealState.getRecord().setMapFields(newIdealState.getMapFields());
dupMsg.getRecord().setSimpleFields(sourceMsg.getRecord().getSimpleFields()); dupMsg.getRecord().setListFields(sourceMsg.getRecord().getListFields()); dupMsg.getRecord().setMapFields(sourceMsg.getRecord().getMapFields()); accessor.setProperty(dupMsg.getKey(accessor.keyBuilder(), dupMsg.getTgtName()), dupMsg); Thread.sleep(1000);
targetExternalView.getRecord().setMapFields(intermediateAssignment); needPersist = true;
targetExternalView.getRecord().setMapFields(intermediateAssignment); needPersist = true;
_record.setMapFields(mapFields);
_record.setMapFields(mapFields);