Console - DICTIONARY GET

Displays the value of the requested key, loaded from the database dictionary.

Syntax

  1. DICTIONARY GET <key>
  • <key> Defines the key you want to access.

Example

  • In a dictionary of U.S. presidents, display the entry for Barack Obama:

    1. orientdb> DICTIONARY GET obama
    2.  
    3. -------------------------------------------------------------------------
    4. Class: Person id: 5:4 v.1
    5. -------------------------------------------------------------------------
    6. parent: null
    7. children : [Person@5:5{parent:Person@5:4,children:null,name:Malia Ann,
    8. surname:Obama,city:null}, Person@5:6{parent:Person@5:4,
    9. children:null,name:Natasha,surname:Obama,city:null}]
    10. name : Barack
    11. surname : Obama
    12. city : City@-6:2{name:Honolulu}
    13. -------------------------------------------------------------------------

You can display all keys stored in a database using the DICTIONARY KEYS command. For more information on indexes, see Indexes.

For more information on other commands, see Console Commands.