public class TxServlet extends BigdataRDFServlet
Transaction isolation requires that the namespace is provisioned with support
for isolatable indices. See BigdataSail.Options#ISOLATABLE_INDICES
.
When isolation is enabled for a namespace, the updates for the namespace will
be buffered by isolated indices. When a transaction prepares, the write set
will be validated by comparing the modified tuples against the unisolated
indices touched by the write set and looking for conflicts (revision
timestamps that have been updated since the transaction start). If a conflict
can not be reconciled, then the transaction will be unable to commit.
Read only transactions may also be requested in order to have snapshot isolation across a series of queries. blazegraph provides snapshot isolation for queries regardless. The use of an explicit read only transaction is only required to maintain the same snapshot across multiple queries.
BigdataSail.Options#ISOLATABLE_INDICES
,
Serialized FormATTR_BLUEPRINTS, MIME_JSON, MIME_RDF_XML, MIME_SPARQL_QUERY, MIME_SPARQL_RESULTS_JSON, MIME_SPARQL_RESULTS_XML, MIME_SPARQL_UPDATE, NA, OUTPUT_FORMAT_JSON, OUTPUT_FORMAT_JSON_SHORT, OUTPUT_FORMAT_QUERY_PARAMETER, OUTPUT_FORMAT_XML, OUTPUT_FORMAT_XML_SHORT, UNDEFINED_WORKBENCH_NAMESPACE, UTF8
ATTRIBUTE_RDF_CONTEXT, charset, DELETE, GET, HTTP_BADREQUEST, HTTP_HEADER_BIGDATA_READ_ONLY, HTTP_INTERNALERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOTFOUND, HTTP_NOTIMPLEMENTED, HTTP_OK, POST, PUT
MIME_APPLICATION_JSON, MIME_APPLICATION_URL_ENCODED, MIME_APPLICATION_XML, MIME_DEFAULT_BINARY, MIME_GRAPH_ML, MIME_PROPERTIES_XML, MIME_TEXT_HTML, MIME_TEXT_JAVASCRIPT, MIME_TEXT_PLAIN
Constructor and Description |
---|
TxServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Methods for transaction management (create, prepare, isActive, commit,
abort).
|
buildAndCommitBooleanResponse, buildAndCommitNamespaceNotFoundResponse, buildAndCommitRangeCountResponse, getNamespace, getTimestamp, isAttachment, launderThrowable, newPipedInputStream, parseBindings, sendGraph, sendProperties, toURIs
buildAndCommitResponse, decodeContexts, getBigdataRDFContext, getBooleanValue, getIndexManager, getIndexManager, getServiceURIs, readFully, submitApiTask
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
doPost
in class javax.servlet.http.HttpServlet
IOException
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
doGet
in class javax.servlet.http.HttpServlet
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.