I have been developing my first RESTful server utilizing such technologies as Spring and HBase.
Message
below is the core model of my server;
@AllArgsConstructor
@Getter
public class Message {
private final String from;
private final String to;
private final long when;
}
My server should save and find messages into HBase.
I have already made research and read this documentation: https://docs.spring.io/spring-hadoop/docs/2.5.0.RELEASE/reference/html/springandhadoop-hbase.html#data-access-object-dao-support
However, it's not enough. The tutorial doesn't expose how to find by a specific column.
Could you provide a code snippet that retrieves a message from HBase based on the following query?
SELECT from, to, when FROM Message WHERE to = {userId} OR from = {userId}