Hi,

I want to store an "IP address" property on a Vertex, and want to query by 
exact-match or bit-mask (e.g. xxxx/48, xxxx/64).
The value may be an IPv4 or IPv6 address (e.g. 
2001:0db8:0000:0000:0000:0000:dead:beaf). That is, maximum bit length is 
128bit which requires unsinged 128bit integer.
But OrientDB does not support BigInteger. I thought some ways.


1.  Store it as 16bit int property * 8

2.  Store is as Blob or Byte ? (0 prefixed if the bit length is shorter 
than 128)

3. Store it as String

It seems each has pros and cons. Does anyone has more efficient idea ?


---
Takao

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to