Hi,
I have two questions. Thank you for any insight in advance...
Q1. What is the best programmatic way to get key-value pair using JAVA?
Using SQL 'SELECT KEY, VALUE FROM INDEX:MYKEYS WHERE KEY="Gene"' in
Studio I get one record but showing blanks
Using 'SELECT FROM INDEX:MYKEYS WHERE KEY="GENE"' returns the key and
the rid back but not the value
I can pull the Value back via SQL'SELECT FROM #3:0'
Q2. I follow the instruction on how to set up a unique key-value database
from the manual but for some reason when I pull the data I get an array
presentation not an unique single JSON object
1. Create an index like create index mykeys UNIQUE STRING
2. Insert the data via put restful call
3. Pull the data via get restful call I get the following an array back
instead of a unique single JSON object
[{"@type":"d","@rid":"#3:0","@version":1,"accountId":"Gene","publicKey":"123456-mykeynnnnn"}]
--
---
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.