public class GraphMetaData
extends java.lang.Object
PgxGraph
.Constructor and Description |
---|
GraphMetaData() |
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 data-source (timestamp for files, snapshot ID for databases).
|
IdType |
getEdgeIdType()
Gets the edge ID type of this graph.
|
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
|
IdType |
getVertexIdType()
Gets the vertex ID type of this graph.
|
int |
hashCode() |
boolean |
isDirected()
Returns if the graph is directed.
|
void |
setConfig(GraphConfig config) |
void |
setCreationRequestTimestamp(long creationRequestTimestamp) |
void |
setCreationTimestamp(long creationTimestamp) |
void |
setDataSourceVersion(java.lang.String dataSourceVersion) |
void |
setDirected(boolean directed) |
void |
setEdgeIdType(IdType edgeIdType) |
void |
setMemoryMb(long memoryMb) |
void |
setNumEdges(long numEdges) |
void |
setNumVertices(long numVertices) |
void |
setVertexIdType(IdType vertexIdType) |
java.lang.String |
toString() |
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 IdType getEdgeIdType()
public long getMemoryMb()
public long getNumEdges()
public long getNumVertices()
public IdType getVertexIdType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDirected()
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 setEdgeIdType(IdType edgeIdType)
edgeIdType
- the edgeIdType to setpublic 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 setVertexIdType(IdType vertexIdType)
vertexIdType
- the vertexIdType to setpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 Oracle Corp. All Rights Reserved.