/** * @param key * The key inside the messageMap, please only use human readable string (no JSON or such) - this allows * easy mutation of the coordinator stream outside of Samza (scripts) * @param value * The value corresponding to the key, should also be a simple string */ protected void putMessageValue(String key, String value) { getMessageValues().put(key, value); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isDelete ? 1231 : 1237); result = prime * result + Arrays.hashCode(keyArray); result = prime * result + ((messageMap == null) ? 0 : getMessageValues() == null ? 0 : getMessageValues().hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isDelete ? 1231 : 1237); result = prime * result + Arrays.hashCode(keyArray); result = prime * result + ((messageMap == null) ? 0 : getMessageValues() == null ? 0 : getMessageValues().hashCode()); return result; }
/** * @param key * The key inside the messageMap, please only use human readable string (no JSON or such) - this allows * easy mutation of the coordinator stream outside of Samza (scripts) * @param value * The value corresponding to the key, should also be a simple string */ protected void putMessageValue(String key, String value) { getMessageValues().put(key, value); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isDelete ? 1231 : 1237); result = prime * result + Arrays.hashCode(keyArray); result = prime * result + ((messageMap == null) ? 0 : getMessageValues() == null ? 0 : getMessageValues().hashCode()); return result; }
/** * @param key * The key inside the messageMap, please only use human readable string (no JSON or such) - this allows * easy mutation of the coordinator stream outside of Samza (scripts) * @param value * The value corresponding to the key, should also be a simple string */ protected void putMessageValue(String key, String value) { getMessageValues().put(key, value); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isDelete ? 1231 : 1237); result = prime * result + Arrays.hashCode(keyArray); result = prime * result + ((messageMap == null) ? 0 : getMessageValues() == null ? 0 : getMessageValues().hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isDelete ? 1231 : 1237); result = prime * result + Arrays.hashCode(keyArray); result = prime * result + ((messageMap == null) ? 0 : getMessageValues() == null ? 0 : getMessageValues().hashCode()); return result; }
/** * @param key * The key inside the messageMap, please only use human readable string (no JSON or such) - this allows * easy mutation of the coordinator stream outside of Samza (scripts) * @param value * The value corresponding to the key, should also be a simple string */ protected void putMessageValue(String key, String value) { getMessageValues().put(key, value); }
/** * @param key * The key inside the messageMap, please only use human readable string (no JSON or such) - this allows * easy mutation of the coordinator stream outside of Samza (scripts) * @param value * The value corresponding to the key, should also be a simple string */ protected void putMessageValue(String key, String value) { getMessageValues().put(key, value); }
protected String getMessageValue(String key) { return getMessageValues().get(key); }
protected String getMessageValue(String key) { return getMessageValues().get(key); }
protected String getMessageValue(String key) { return getMessageValues().get(key); }
protected String getMessageValue(String key) { return getMessageValues().get(key); }
protected String getMessageValue(String key) { return getMessageValues().get(key); }
/** * @return The whole message map including header information. */ public Map<String, Object> getMessageMap() { if (!isDelete) { Map<String, Object> immutableMap = new HashMap<String, Object>(messageMap); // To make sure the values is immutable, we overwrite it with an immutable version of the the values map. immutableMap.put("values", Collections.unmodifiableMap(getMessageValues())); return Collections.unmodifiableMap(immutableMap); } else { return null; } }
/** * @return The whole message map including header information. */ public Map<String, Object> getMessageMap() { if (!isDelete) { Map<String, Object> immutableMap = new HashMap<String, Object>(messageMap); // To make sure the values is immutable, we overwrite it with an immutable version of the the values map. immutableMap.put("values", Collections.unmodifiableMap(getMessageValues())); return Collections.unmodifiableMap(immutableMap); } else { return null; } }
/** * @return The whole message map including header information. */ public Map<String, Object> getMessageMap() { if (!isDelete) { Map<String, Object> immutableMap = new HashMap<String, Object>(messageMap); // To make sure the values is immutable, we overwrite it with an immutable version of the the values map. immutableMap.put("values", Collections.unmodifiableMap(getMessageValues())); return Collections.unmodifiableMap(immutableMap); } else { return null; } }
/** * @return The whole message map including header information. */ public Map<String, Object> getMessageMap() { if (!isDelete) { Map<String, Object> immutableMap = new HashMap<String, Object>(messageMap); // To make sure the values is immutable, we overwrite it with an immutable version of the the values map. immutableMap.put("values", Collections.unmodifiableMap(getMessageValues())); return Collections.unmodifiableMap(immutableMap); } else { return null; } }
/** * @return The whole message map including header information. */ public Map<String, Object> getMessageMap() { if (!isDelete) { Map<String, Object> immutableMap = new HashMap<String, Object>(messageMap); // To make sure the values is immutable, we overwrite it with an immutable version of the the values map. immutableMap.put("values", Collections.unmodifiableMap(getMessageValues())); return Collections.unmodifiableMap(immutableMap); } else { return null; } }