public class GraphMetaData
extends oracle.pgx.common.Self
PgxGraph
.Constructor and Description |
---|
GraphMetaData()
Deprecated.
|
GraphMetaData(GraphMetaData other) |
GraphMetaData(GraphMetaData other, java.net.URI baseUri)
Deprecated.
|
GraphMetaData(IdType vertexIdType)
Deprecated.
|
GraphMetaData(IdType vertexIdType, IdType edgeIdType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
GraphConfig |
getConfig()
Gets the graph configuration object used to specify the data source of this graph.
|
long |
getCreationRequestTimestamp()
Gets the timestamp (milliseconds since Jan 1st 1970) when this graph was requested to be created.
|
long |
getCreationTimestamp()
Gets the timestamp (milliseconds since Jan 1st 1970) when this graph finished creation.
|
java.lang.String |
getDataSourceVersion()
Gets the format-specific version identifier provided by the data-source.
|
IdStrategy |
getEdgeIdStrategy()
Gets the ID strategy used for the edges of this graph.
|
IdType |
getEdgeIdType()
Gets the edge ID type of this graph.
|
java.util.Map<java.lang.String,EdgeProviderMetaData> |
getEdgeProvidersMetaData()
Gets the edge tables metadata
|
EdgeProviderMetaData |
getMainEdgeProviderMetaData() |
VertexProviderMetaData |
getMainVertexProviderMetaData() |
long |
getMemoryMb()
Gets the estimated number of memory this graph (including its properties) consumes in memory (in megabytes).
|
long |
getNumEdges()
Gets the number of edges
|
long |
getNumVertices()
Gets the number of vertices
|
IdStrategy |
getVertexIdStrategy()
Gets the ID strategy used for the vertices of this graph.
|
IdType |
getVertexIdType()
Gets the vertex ID type of this graph.
|
java.util.Map<java.lang.String,VertexProviderMetaData> |
getVertexProvidersMetaData()
Gets the vertex tables metadata
|
int |
hashCode() |
boolean |
isDirected()
Returns if the graph is directed.
|
boolean |
isGraphPinned() |
boolean |
isPartitioned()
Returns if the graph is partitioned or not.
|
boolean |
isSnapshotPinned() |
void |
setConfig(GraphConfig config) |
void |
setCreationRequestTimestamp(long creationRequestTimestamp) |
void |
setCreationTimestamp(long creationTimestamp) |
void |
setDataSourceVersion(java.lang.String dataSourceVersion) |
void |
setDirected(boolean directed) |
void |
setEdgeIdStrategy(IdStrategy idStrategy) |
void |
setEdgeIdType(IdType edgeIdType) |
void |
setEdgeProvidersMetaData(java.util.Map<java.lang.String,EdgeProviderMetaData> edgeProviderMetaDataMap)
Sets the edge tables metadata
|
void |
setGraphPinned(boolean pinned) |
void |
setMemoryMb(long memoryMb) |
void |
setNumEdges(long numEdges) |
void |
setNumVertices(long numVertices) |
void |
setSnapshotPinned(boolean snapshotPinned) |
void |
setVertexIdStrategy(IdStrategy idStrategy) |
void |
setVertexIdType(IdType vertexIdType) |
void |
setVertexProvidersMetaData(java.util.Map<java.lang.String,VertexProviderMetaData> vertexProviderMetaDataMap)
Set the vertex tables metadata
|
java.lang.String |
toString() |
@Deprecated public GraphMetaData()
public GraphMetaData(GraphMetaData other)
@Deprecated public GraphMetaData(GraphMetaData other, java.net.URI baseUri)
@Deprecated public GraphMetaData(IdType vertexIdType)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public GraphConfig getConfig()
null
if graph was not created from a datasource.public long getCreationRequestTimestamp()
public long getCreationTimestamp()
public java.lang.String getDataSourceVersion()
null
if graph was not created from a datasource.public IdStrategy getEdgeIdStrategy()
public IdType getEdgeIdType()
public java.util.Map<java.lang.String,EdgeProviderMetaData> getEdgeProvidersMetaData()
public EdgeProviderMetaData getMainEdgeProviderMetaData()
public VertexProviderMetaData getMainVertexProviderMetaData()
public long getMemoryMb()
public long getNumEdges()
public long getNumVertices()
public IdStrategy getVertexIdStrategy()
public IdType getVertexIdType()
public java.util.Map<java.lang.String,VertexProviderMetaData> getVertexProvidersMetaData()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDirected()
public boolean isGraphPinned()
public boolean isPartitioned()
true
if this graph is partitioned, false
otherwise.public boolean isSnapshotPinned()
public void setConfig(GraphConfig config)
config
- the GraphConfig
object to set for this GraphMetaData
objectpublic void setCreationRequestTimestamp(long creationRequestTimestamp)
creationRequestTimestamp
- the creationRequestTimestamp to setpublic void setCreationTimestamp(long creationTimestamp)
creationTimestamp
- the creationTimestamp to setpublic void setDataSourceVersion(java.lang.String dataSourceVersion)
dataSourceVersion
- the dataSourceVersion to setpublic void setDirected(boolean directed)
directed
-public void setEdgeIdStrategy(IdStrategy idStrategy)
public void setEdgeIdType(IdType edgeIdType)
edgeIdType
- the edgeIdType to setpublic void setEdgeProvidersMetaData(java.util.Map<java.lang.String,EdgeProviderMetaData> edgeProviderMetaDataMap)
public void setGraphPinned(boolean pinned)
public void setMemoryMb(long memoryMb)
memoryMb
- the memoryMb to setpublic void setNumEdges(long numEdges)
numEdges
- the numEdges to setpublic void setNumVertices(long numVertices)
numVertices
- the numVertices to setpublic void setSnapshotPinned(boolean snapshotPinned)
public void setVertexIdStrategy(IdStrategy idStrategy)
public void setVertexIdType(IdType vertexIdType)
vertexIdType
- the vertexIdType to setpublic void setVertexProvidersMetaData(java.util.Map<java.lang.String,VertexProviderMetaData> vertexProviderMetaDataMap)
public java.lang.String toString()
toString
in class java.lang.Object