public class BigdataGraphBulkLoad extends BigdataGraph implements com.tinkerpop.blueprints.TransactionalGraph, IChangeLog
Implements IChangeLog so that we can report a mutation count.
BigdataGraph.EdgeIterable, BigdataGraph.FusedIterable<T>, BigdataGraph.Options, BigdataGraph.VertexIterable, BigdataGraph.WrappedResult<E>EDGE, factory, FEATURES, LABEL, laxProperties, maxQueryTime, SPARQL_LOG_MAX, TYPE, VERTEX| Constructor and Description |
|---|
BigdataGraphBulkLoad(BigdataSailRepositoryConnection cxn) |
BigdataGraphBulkLoad(BigdataSailRepositoryConnection cxn,
BlueprintsValueFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
com.tinkerpop.blueprints.Edge |
addEdge(Object key,
com.tinkerpop.blueprints.Vertex from,
com.tinkerpop.blueprints.Vertex to,
String label)
Add an edge.
|
com.tinkerpop.blueprints.Vertex |
addVertex(Object key)
Add a vertex.
|
void |
cancel(RunningQuery r)
Kill a running query specified by the RunningQuery object.
|
void |
cancel(String externalQueryId)
Kill a running query specified by the UUID String.
|
void |
cancel(UUID queryId)
Kill a running query specified by the UUID.
|
void |
changeEvent(IChangeRecord record)
Occurs when a statement add or remove is flushed to the indices (but
not yet committed).
|
void |
close()
Close any open resources.
|
void |
commit() |
org.openrdf.repository.RepositoryConnection |
cxn()
Different implementations will return different types of connections
depending on the mode (client/server, embedded, read-only, etc.)
|
com.tinkerpop.blueprints.Edge |
getEdge(Object arg0)
Lookup an edge.
|
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges()
Iterate all edges.
|
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(String arg0,
Object arg1)
Find edges with the supplied property value.
|
long |
getMutationCountCurrentCommit() |
long |
getMutationCountLastCommit() |
long |
getMutationCountTotal() |
RunningQuery |
getQueryByExternalId(String extQueryId)
Return the
RunningQuery for a currently executing SPARQL QUERY or
UPDATE request. |
RunningQuery |
getQueryById(UUID queryId2)
Return the
RunningQuery for a currently executing SPARQL QUERY or
UPDATE request. |
Collection<RunningQuery> |
getRunningQueries()
Return a Collection of running queries
|
com.tinkerpop.blueprints.Vertex |
getVertex(Object key)
Lookup a vertex.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices()
Iterate all vertices.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String arg0,
Object arg1)
Find vertices with the supplied property value.
|
protected boolean |
isQueryCancelled(UUID queryId)
Helper method to determine if a query was cancelled.
|
boolean |
isReadOnly()
Is this a read-only view of the graph?
|
com.tinkerpop.blueprints.GraphQuery |
query()
Providing an override implementation for our GraphQuery to avoid the
low-performance scan and filter paradigm.
|
void |
removeEdge(com.tinkerpop.blueprints.Edge arg0)
Remove an edge and its properties.
|
void |
removeVertex(com.tinkerpop.blueprints.Vertex arg0)
Remove a vertex and its edges and properties.
|
void |
rollback() |
void |
setProperty(org.openrdf.model.URI uri,
org.openrdf.model.URI prop,
Collection<org.openrdf.model.Literal> vals)
Set a multi-value property on an edge or vertex (remove the old values
first).
|
protected UUID |
setupQuery(BigdataSailRepositoryConnection cxn,
ASTContainer astContainer,
QueryType queryType,
String extQueryId)
Embedded clients can override this to access query management
capabilities.
|
void |
shutdown() |
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion arg0)
Deprecated.
|
protected void |
tearDownQuery(UUID queryId)
Embedded clients can override this to access query management
capabilities.
|
void |
transactionAborted()
Occurs if the current SAIL transaction is aborted.
|
void |
transactionBegin()
Message issued when a new transaction will begin.
|
void |
transactionCommited(long commitTime)
Occurs when the current SAIL transaction is committed.
|
void |
transactionPrepare()
Message issued when preparing for a commit.
|
addEdge, addEdge, ask, ask, convert, finalizeQuery, fuse, getElements, getFeatures, getProperty, getProperty, getProperty, getPropertyKeys, getValueFactory, history, history, loadGraphML, project, project, removeProperty, removeProperty, select, select, setMaxQueryTime, setProperty, toGraphAtom, toGraphAtom, toLiterals, toString, update, updatepublic BigdataGraphBulkLoad(BigdataSailRepositoryConnection cxn)
public BigdataGraphBulkLoad(BigdataSailRepositoryConnection cxn, BlueprintsValueFactory factory)
public org.openrdf.repository.RepositoryConnection cxn()
throws Exception
BigdataGraphcxn in class BigdataGraphExceptionpublic void commit()
commit in interface com.tinkerpop.blueprints.TransactionalGraphpublic void rollback()
rollback in interface com.tinkerpop.blueprints.TransactionalGraphpublic void shutdown()
shutdown in interface com.tinkerpop.blueprints.Graphshutdown in interface com.tinkerpop.blueprints.TransactionalGraph@Deprecated public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion arg0)
stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraphpublic com.tinkerpop.blueprints.Edge getEdge(Object arg0)
BigdataGraphgetEdge in interface com.tinkerpop.blueprints.GraphgetEdge in class BigdataGraphpublic Iterable<com.tinkerpop.blueprints.Edge> getEdges()
BigdataGraphgetEdges in interface com.tinkerpop.blueprints.GraphgetEdges in class BigdataGraphpublic Iterable<com.tinkerpop.blueprints.Edge> getEdges(String arg0, Object arg1)
BigdataGraphgetEdges in interface com.tinkerpop.blueprints.GraphgetEdges in class BigdataGraphpublic com.tinkerpop.blueprints.Vertex getVertex(Object key)
BigdataGraphgetVertex in interface com.tinkerpop.blueprints.GraphgetVertex in class BigdataGraphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
BigdataGraphgetVertices in interface com.tinkerpop.blueprints.GraphgetVertices in class BigdataGraphpublic Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String arg0, Object arg1)
BigdataGraphgetVertices in interface com.tinkerpop.blueprints.GraphgetVertices in class BigdataGraphpublic com.tinkerpop.blueprints.GraphQuery query()
BigdataGraphBigdataGraphQuery.query in interface com.tinkerpop.blueprints.Graphquery in class BigdataGraphpublic void removeEdge(com.tinkerpop.blueprints.Edge arg0)
BigdataGraphremoveEdge in interface com.tinkerpop.blueprints.GraphremoveEdge in class BigdataGraphpublic void removeVertex(com.tinkerpop.blueprints.Vertex arg0)
BigdataGraphremoveVertex in interface com.tinkerpop.blueprints.GraphremoveVertex in class BigdataGraphpublic void setProperty(org.openrdf.model.URI uri,
org.openrdf.model.URI prop,
Collection<org.openrdf.model.Literal> vals)
setProperty in class BigdataGraphBigdataElement}public com.tinkerpop.blueprints.Vertex addVertex(Object key)
addVertex in interface com.tinkerpop.blueprints.GraphaddVertex in class BigdataGraphpublic com.tinkerpop.blueprints.Edge addEdge(Object key, com.tinkerpop.blueprints.Vertex from, com.tinkerpop.blueprints.Vertex to, String label)
addEdge in interface com.tinkerpop.blueprints.GraphaddEdge in class BigdataGraphpublic void changeEvent(IChangeRecord record)
IChangeLogchangeEvent in interface IChangeLogrecord - the IChangeRecordpublic void transactionBegin()
IChangeLogtransactionBegin in interface IChangeLogpublic void transactionPrepare()
IChangeLogIChangeLog.transactionCommited(long) or
IChangeLog.transactionAborted().
Note: The listener will have observed all updates by the time this message is generated. Thus, this message can be used to validate post-conditions for the transaction.
transactionPrepare in interface IChangeLogpublic void transactionCommited(long commitTime)
IChangeLogtransactionCommited in interface IChangeLogcommitTime - The timestamp associated with the commit point.public void transactionAborted()
IChangeLogtransactionAborted in interface IChangeLogpublic void close()
IChangeLogclose in interface IChangeLogpublic long getMutationCountTotal()
public long getMutationCountCurrentCommit()
public long getMutationCountLastCommit()
protected UUID setupQuery(BigdataSailRepositoryConnection cxn, ASTContainer astContainer, QueryType queryType, String extQueryId)
BigdataGraphsetupQuery in class BigdataGraphprotected void tearDownQuery(UUID queryId)
BigdataGraphtearDownQuery in class BigdataGraphpublic Collection<RunningQuery> getRunningQueries()
BigdataGraphgetRunningQueries in class BigdataGraphpublic void cancel(UUID queryId)
BigdataGraphcancel in class BigdataGraphpublic void cancel(String externalQueryId)
BigdataGraphcancel in class BigdataGraphpublic void cancel(RunningQuery r)
BigdataGraphcancel in class BigdataGraphpublic RunningQuery getQueryById(UUID queryId2)
BigdataGraphRunningQuery for a currently executing SPARQL QUERY or
UPDATE request.getQueryById in class BigdataGraphqueryId2 - The UUID for the request.RunningQuery iff it was found.public RunningQuery getQueryByExternalId(String extQueryId)
BigdataGraphRunningQuery for a currently executing SPARQL QUERY or
UPDATE request.getQueryByExternalId in class BigdataGraphRunningQuery iff it was found.protected boolean isQueryCancelled(UUID queryId)
BigdataGraphisQueryCancelled in class BigdataGraphpublic boolean isReadOnly()
BigdataGraphisReadOnly in class BigdataGraphCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.