15.2.1 Using Collections and Maps

This section explains with examples, the creation and usages of collections and maps.

You must first create a session before getting started with the collection and map data types.

Example 15-1 Creating a session using JShell

cd /opt/oracle/graph/
./bin/opg-jshell // starting the shell will create an implicit session

Example 15-2 Creating a session using Java

import oracle.pgx.api.*;
...
PgxSession session=Pgx.createSession("<session_name>");

Example 15-3 Creating a session using Python

from pypgx import get_session
session = get_session(session_name="<session_name>")