Package oracle.pgx.api
Class Namespace
- java.lang.Object
-
- oracle.pgx.api.Namespace
-
public class Namespace extends java.lang.Object
Represents a namespace for objects (e.g. graphs, properties) in PGX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static Namespace
fromId(oracle.pgx.common.PgxId namespaceId)
Creates a namespace from the givenPgxId
.oracle.pgx.common.PgxId
getNamespaceId()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
fromId
public static Namespace fromId(oracle.pgx.common.PgxId namespaceId)
Creates a namespace from the givenPgxId
.Throws an exception if no namespace with the given id exists.
- Parameters:
namespaceId
- an id that represents a namespace- Returns:
- a namespace associated with the id
-
getNamespaceId
public oracle.pgx.common.PgxId getNamespaceId()
- Returns:
- the id associated with this namespace
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-