I think byte[] is a good solution! Anyway orient support BigDecimal that i think can fit the usecase of a BidInteger!
bye On 07/19/2014 05:01 AM, Takao Magoori wrote: > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- --- 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.
