Hello,
I need to build an indexed database of whole domains in the world.
.
Example:
domain1.com ips: 1.1.1.1,2.2.2.2,3.3.3.3
domain2.com ips: 1.1.1.1,4.4.4.4
requirements:
fast insertions
fast "selects"
index on ip's - need fast "select" for all domains on IP: 1.1.1.1 .
.
I built it in Berkley-DB , and it seems fine: ( please pay attention to the "MANY_TO_MANY" annotation )
.
@Entity
public static class DomainInfo {
@PrimaryKey String domain; @SecondaryKey(relate=MANY_TO_MANY) Set<String> IP = new HashSet<String>();
}
.
Can I build something like that in Cassandra ?
Thanks a lot !!!
.