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, update
public BigdataGraphBulkLoad(BigdataSailRepositoryConnection cxn)
public BigdataGraphBulkLoad(BigdataSailRepositoryConnection cxn, BlueprintsValueFactory factory)
public org.openrdf.repository.RepositoryConnection cxn() throws Exception
BigdataGraph
cxn
in class BigdataGraph
Exception
public void commit()
commit
in interface com.tinkerpop.blueprints.TransactionalGraph
public void rollback()
rollback
in interface com.tinkerpop.blueprints.TransactionalGraph
public void shutdown()
shutdown
in interface com.tinkerpop.blueprints.Graph
shutdown
in interface com.tinkerpop.blueprints.TransactionalGraph
@Deprecated public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion arg0)
stopTransaction
in interface com.tinkerpop.blueprints.TransactionalGraph
public com.tinkerpop.blueprints.Edge getEdge(Object arg0)
BigdataGraph
getEdge
in interface com.tinkerpop.blueprints.Graph
getEdge
in class BigdataGraph
public Iterable<com.tinkerpop.blueprints.Edge> getEdges()
BigdataGraph
getEdges
in interface com.tinkerpop.blueprints.Graph
getEdges
in class BigdataGraph
public Iterable<com.tinkerpop.blueprints.Edge> getEdges(String arg0, Object arg1)
BigdataGraph
getEdges
in interface com.tinkerpop.blueprints.Graph
getEdges
in class BigdataGraph
public com.tinkerpop.blueprints.Vertex getVertex(Object key)
BigdataGraph
getVertex
in interface com.tinkerpop.blueprints.Graph
getVertex
in class BigdataGraph
public Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
BigdataGraph
getVertices
in interface com.tinkerpop.blueprints.Graph
getVertices
in class BigdataGraph
public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String arg0, Object arg1)
BigdataGraph
getVertices
in interface com.tinkerpop.blueprints.Graph
getVertices
in class BigdataGraph
public com.tinkerpop.blueprints.GraphQuery query()
BigdataGraph
BigdataGraphQuery
.query
in interface com.tinkerpop.blueprints.Graph
query
in class BigdataGraph
public void removeEdge(com.tinkerpop.blueprints.Edge arg0)
BigdataGraph
removeEdge
in interface com.tinkerpop.blueprints.Graph
removeEdge
in class BigdataGraph
public void removeVertex(com.tinkerpop.blueprints.Vertex arg0)
BigdataGraph
removeVertex
in interface com.tinkerpop.blueprints.Graph
removeVertex
in class BigdataGraph
public void setProperty(org.openrdf.model.URI uri, org.openrdf.model.URI prop, Collection<org.openrdf.model.Literal> vals)
setProperty
in class BigdataGraph
BigdataElement}
public com.tinkerpop.blueprints.Vertex addVertex(Object key)
addVertex
in interface com.tinkerpop.blueprints.Graph
addVertex
in class BigdataGraph
public 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.Graph
addEdge
in class BigdataGraph
public void changeEvent(IChangeRecord record)
IChangeLog
changeEvent
in interface IChangeLog
record
- the IChangeRecord
public void transactionBegin()
IChangeLog
transactionBegin
in interface IChangeLog
public void transactionPrepare()
IChangeLog
IChangeLog.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 IChangeLog
public void transactionCommited(long commitTime)
IChangeLog
transactionCommited
in interface IChangeLog
commitTime
- The timestamp associated with the commit point.public void transactionAborted()
IChangeLog
transactionAborted
in interface IChangeLog
public void close()
IChangeLog
close
in interface IChangeLog
public long getMutationCountTotal()
public long getMutationCountCurrentCommit()
public long getMutationCountLastCommit()
protected UUID setupQuery(BigdataSailRepositoryConnection cxn, ASTContainer astContainer, QueryType queryType, String extQueryId)
BigdataGraph
setupQuery
in class BigdataGraph
protected void tearDownQuery(UUID queryId)
BigdataGraph
tearDownQuery
in class BigdataGraph
public Collection<RunningQuery> getRunningQueries()
BigdataGraph
getRunningQueries
in class BigdataGraph
public void cancel(UUID queryId)
BigdataGraph
cancel
in class BigdataGraph
public void cancel(String externalQueryId)
BigdataGraph
cancel
in class BigdataGraph
public void cancel(RunningQuery r)
BigdataGraph
cancel
in class BigdataGraph
public RunningQuery getQueryById(UUID queryId2)
BigdataGraph
RunningQuery
for a currently executing SPARQL QUERY or
UPDATE request.getQueryById
in class BigdataGraph
queryId2
- The UUID
for the request.RunningQuery
iff it was found.public RunningQuery getQueryByExternalId(String extQueryId)
BigdataGraph
RunningQuery
for a currently executing SPARQL QUERY or
UPDATE request.getQueryByExternalId
in class BigdataGraph
RunningQuery
iff it was found.protected boolean isQueryCancelled(UUID queryId)
BigdataGraph
isQueryCancelled
in class BigdataGraph
public boolean isReadOnly()
BigdataGraph
isReadOnly
in class BigdataGraph
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.