I have an userStream having username,ipaddress,timestamp
I want to store this details in UserDetailsTable
(In memory table) and need to do an upsert.
How could I able to update the row if username and ipaddress are same and insert otherwise as a new row.
For example:
Ist userStream is "Rockey","192.15.12.11","10-10-2015 10.32"
2nd userStream is "Jose","192.15.12.21","10-10-2015 10.33"
3rd userStream is "Rockey","192.15.12.11","10-10-2015 10.34"
Result of UserDetailsTable is below
"Jose","192.15.12.21","10-10-2015 10.33" (New row)
"Rockey","192.15.12.11","10-10-2015 10.34" (Update the existing row)