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,EdgeTableMetaData> |
getEdgeTableMetaDataMap()
Gets the edge tables metadata
|
EdgeTableMetaData |
getMainEdgeTableMetaData() |
VertexTableMetaData |
getMainVertexTableMetaData() |
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,VertexTableMetaData> |
getVertexTableMetaDataMap()
Gets the vertex tables metadata
|
int |
hashCode() |
boolean |
isDirected()
Returns if the graph is directed.
|
boolean |
isPartitioned()
Returns if the graph is partitioned or not.
|
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 |
setEdgeTableMetaDataMap(java.util.Map<java.lang.String,EdgeTableMetaData> edgeTableMetaDataMap)
Sets the edge tables metadata
|
void |
setMemoryMb(long memoryMb) |
void |
setNumEdges(long numEdges) |
void |
setNumVertices(long numVertices) |
void |
setVertexIdStrategy(IdStrategy idStrategy) |
void |
setVertexIdType(IdType vertexIdType) |
void |
setVertexTableMetaDataMap(java.util.Map<java.lang.String,VertexTableMetaData> vertexTableMetaDataMap)
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,EdgeTableMetaData> getEdgeTableMetaDataMap()
public EdgeTableMetaData getMainEdgeTableMetaData()
public VertexTableMetaData getMainVertexTableMetaData()
public long getMemoryMb()
public long getNumEdges()
public long getNumVertices()
public IdStrategy getVertexIdStrategy()
public IdType getVertexIdType()
public java.util.Map<java.lang.String,VertexTableMetaData> getVertexTableMetaDataMap()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isDirected()
public boolean isPartitioned()
true
if this graph is partitioned, false
otherwise.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 setEdgeTableMetaDataMap(java.util.Map<java.lang.String,EdgeTableMetaData> edgeTableMetaDataMap)
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 setVertexIdStrategy(IdStrategy idStrategy)
public void setVertexIdType(IdType vertexIdType)
vertexIdType
- the vertexIdType to setpublic void setVertexTableMetaDataMap(java.util.Map<java.lang.String,VertexTableMetaData> vertexTableMetaDataMap)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.