package com.zillabyte.motherbrain.relational.redshiftimpl;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import com.google.common.collect.Maps;
import com.zillabyte.motherbrain.relational.StreamMarker;
public class RedshiftStreamMarker implements StreamMarker {
/**
*
*/
private static final long serialVersionUID = -2865367323637880427L;
private Map<String, Long> _map = Maps.newHashMap();
public Long getLatest(String table) {
return _map.get(table);
}
public void setLatest(String table, Long id) {
_map.put(table, id);
}
public Set<Entry<String, Long>> entries() {
return _map.entrySet();
}
}