Package | Description |
---|---|
org.treetank.access |
Access to Treetank
|
org.treetank.api |
TreeTank API
This package contains the public TreeTank API.
|
org.treetank.axis |
Axis Layer
|
org.treetank.exception |
Exception Layer
|
org.treetank.filelistener.file | |
org.treetank.io |
This package represent the interaction of treetank with the
backend (namely a file, a berkley-db, a database).
|
org.treetank.io.berkeley |
Implementation for the BerkeleyDB as the backend.
|
org.treetank.io.combined | |
org.treetank.io.jclouds | |
org.treetank.jscsi | |
org.treetank.saxon.wrapper |
Treetank wrappers.
|
org.treetank.service.jaxrx.implementation |
Resource implementation
This package contains classes which handles request for database resources and database subresources like
in our case: node id support.
|
org.treetank.service.jaxrx.util |
Util classes
This package contains util classes for REST resources support.
|
org.treetank.service.xml.diff |
Diff Layer
|
org.treetank.service.xml.diff.algorithm.fmes |
Provides the fast match / edit script (FMES) tree to tree correction
algorithm as described in "Change detection in hierarchically structured
information" by S.
|
org.treetank.service.xml.shredder |
Shredder Package
|
Modifier and Type | Method and Description |
---|---|
void |
FilelistenerWriteTrx.abort()
Abort all modifications of the exclusive write transaction.
|
void |
IscsiWriteTrx.abort()
Abort all modifications of the exclusive write transaction.
|
void |
NodeWriteTrx.abort()
Abort all modifications of the exclusive write transaction.
|
void |
FilelistenerWriteTrx.addEmptyFile(String pRelativePath)
Add an empty file in case of ENTRY_CREATE event.
|
void |
FilelistenerWriteTrx.addFile(File pFile,
String pRelativePath)
Add a new file to the system
|
IBucketReadTrx |
Session.beginBucketRtx(long pRevKey) |
IBucketWriteTrx |
Session.beginBucketWtx() |
IBucketWriteTrx |
Session.beginBucketWtx(long mRepresentRevision) |
void |
IscsiWriteTrx.bootstrap(byte[] bytes)
This method inserts the given data into the database.
|
void |
NodeWriteTrx.close()
Closing current NodeWriteTrx.
|
void |
NodeReadTrx.close()
Close shared read transaction and immediately release all resources.
|
boolean |
Storage.close()
Closing the database for further access.
|
boolean |
Session.close()
Safely close session and immediately release all resources.
|
void |
FilelistenerWriteTrx.commit()
Non-blocking commit in TT
|
void |
IscsiWriteTrx.commit()
ICommitStrategy all modifications of the exclusive write transaction.
|
void |
NodeWriteTrx.commit()
ICommitStrategy all modifications of the exclusive write transaction.
|
void |
BucketWriteTrx.commit()
Simple commit of this bucket transaction to store the newest version.
|
void |
FilelistenerWriteTrx.commitBlocked()
Blocking commit in TT
|
void |
BucketWriteTrx.commitBlocked()
Simple commit blocked of this bucket transaction to store the newest version.
|
boolean |
Storage.createResource(ResourceConfiguration pResConf)
Initialization of a resource.
|
IBucketWriteTrx |
NodeWriteTrx.getPageWtx()
Getting the Page Transaction
|
ISession |
Storage.getSession(SessionConfiguration pSessionConf)
Getting the session associated within this database.
|
long |
NodeWriteTrx.insertAttribute(QName pQName,
String pValue)
Insert attribute in currently selected node.
|
long |
NodeWriteTrx.insertElementAsFirstChild(QName pQName)
Insert new element node as first child of currently selected node.
|
long |
NodeWriteTrx.insertElementAsRightSibling(QName pQName)
Insert new element node as right sibling of currently selected node.
|
long |
NodeWriteTrx.insertNamespace(QName pQName)
Insert namespace declaration in currently selected node.
|
long |
NodeWriteTrx.insertTextAsFirstChild(String pValue)
Insert new text node as first child of currently selected node.
|
long |
NodeWriteTrx.insertTextAsRightSibling(String pValue)
Insert new text node as right sibling of currently selected node.
|
static IStorage |
Storage.openStorage(File pFile)
Open database.
|
void |
NodeWriteTrx.remove()
Remove currently selected node.
|
void |
BucketWriteTrx.removeData(IData pData)
Removing the data from the storage.
|
void |
FilelistenerWriteTrx.removeFile(String pRelativePath)
Remove file from desired path
|
void |
NodeWriteTrx.revertTo(long pRevision)
Reverting all changes to the revision defined.
|
long |
BucketWriteTrx.setData(IData pData)
Setting a data and storing the data in the bucket-layer.
|
void |
NodeWriteTrx.setQName(QName paramName)
Set QName of node.
|
void |
NodeWriteTrx.setURI(String paramUri)
Set URI of node.
|
void |
IscsiWriteTrx.setValue(byte[] val)
Set value of data.
|
void |
NodeWriteTrx.setValue(String pValue)
Set value of node.
|
boolean |
Session.truncate()
Truncating the resource where this
ISession is bound to. |
boolean |
Storage.truncateResource(SessionConfiguration pSesConf)
Truncating a resource.
|
static void |
Storage.truncateStorage(StorageConfiguration pConf)
Truncate a storage.
|
Constructor and Description |
---|
BucketReadTrx(ISession pSession,
UberBucket pUberBucket,
RevisionRootBucket pRevBucket,
MetaBucket pMetaBucket,
IBackendReader pReader)
Standard constructor.
|
BucketWriteTrx(ISession pSession,
UberBucket pUberBucket,
IBackendWriter pWriter,
long pRepresentRev)
Standard constructor.
|
FilelistenerReadTrx(IBucketReadTrx pPageTrx)
Constructor.
|
FilelistenerWriteTrx(IBucketWriteTrx pPageTrx,
ISession pSession) |
IscsiReadTrx(IBucketReadTrx pPageTrx)
Constructor.
|
IscsiWriteTrx(IBucketWriteTrx pPageTrx,
ISession pSession)
Create a new IscsiWriteTrx
|
NodeReadTrx(IBucketReadTrx pPageTrx)
Constructor.
|
NodeWriteTrx(ISession pSession,
IBucketWriteTrx pPageWriteTrx,
NodeWriteTrx.HashKind kind)
Constructor.
|
Session(Storage pStorage,
ResourceConfiguration pResourceConf,
SessionConfiguration pSessionConf,
UberBucket pBucket)
Hidden constructor, only visible for the Storage-Class for instantiation.
|
Modifier and Type | Method and Description |
---|---|
void |
IFilelistenerWriteTrx.abort()
Abort all modifications of the exclusive write transaction.
|
void |
IIscsiWriteTrx.abort()
Abort all modifications of the exclusive write transaction.
|
void |
INodeWriteTrx.abort()
Abort all modifications of the exclusive write transaction.
|
void |
IFilelistenerWriteTrx.addEmptyFile(String pRelativePath)
Add an empty file in case of ENTRY_CREATE event.
|
void |
IFilelistenerWriteTrx.addFile(File pFile,
String pRelativePath)
Add a new file to the system
|
IBucketReadTrx |
ISession.beginBucketRtx(long pRevKey)
Begin exclusive read transaction on the bucket layer
|
IBucketWriteTrx |
ISession.beginBucketWtx()
Begin exclusive write transaction on the bucket layer
|
IBucketWriteTrx |
ISession.beginBucketWtx(long pRevToRepresent)
Begin exclusive write transaction on the bucket layer with fixed revisions.
|
void |
IIscsiWriteTrx.bootstrap(byte[] vals)
This method inserts the given data into the database.
|
void |
INodeWriteTrx.close()
Closing current NodeWriteTrx.
|
void |
INodeReadTrx.close()
Close shared read transaction and immediately release all resources.
|
boolean |
IStorage.close()
Closing the database for further access.
|
boolean |
ISession.close()
Safely close session and immediately release all resources.
|
void |
IFilelistenerWriteTrx.commit()
Non-blocking commit in TT
|
void |
IIscsiWriteTrx.commit()
ICommitStrategy all modifications of the exclusive write transaction.
|
void |
INodeWriteTrx.commit()
ICommitStrategy all modifications of the exclusive write transaction.
|
void |
IBucketWriteTrx.commit()
Simple commit of this bucket transaction to store the newest version.
|
void |
IFilelistenerWriteTrx.commitBlocked()
Blocking commit in TT
|
void |
IBucketWriteTrx.commitBlocked()
Simple commit blocked of this bucket transaction to store the newest version.
|
boolean |
IStorage.createResource(ResourceConfiguration pResConf)
Initialization of a resource.
|
IBucketWriteTrx |
INodeWriteTrx.getPageWtx()
Getting the Page Transaction
|
ISession |
IStorage.getSession(SessionConfiguration pSessionConf)
Getting the session associated within this database.
|
long |
INodeWriteTrx.insertAttribute(QName pName,
String pValue)
Insert attribute in currently selected node.
|
long |
INodeWriteTrx.insertElementAsFirstChild(QName pName)
Insert new element node as first child of currently selected node.
|
long |
INodeWriteTrx.insertElementAsRightSibling(QName pFromKey)
Insert new element node as right sibling of currently selected node.
|
long |
INodeWriteTrx.insertNamespace(QName pName)
Insert namespace declaration in currently selected node.
|
long |
INodeWriteTrx.insertTextAsFirstChild(String pValue)
Insert new text node as first child of currently selected node.
|
long |
INodeWriteTrx.insertTextAsRightSibling(String pValue)
Insert new text node as right sibling of currently selected node.
|
void |
INodeWriteTrx.remove()
Remove currently selected node.
|
void |
IBucketWriteTrx.removeData(IData pData)
Removing the data from the storage.
|
void |
IFilelistenerWriteTrx.removeFile(String pRelativePath)
Remove file from desired path
|
void |
INodeWriteTrx.revertTo(long pRev)
Reverting all changes to the revision defined.
|
long |
IBucketWriteTrx.setData(IData pData)
Setting a data and storing the data in the bucket-layer.
|
void |
INodeWriteTrx.setQName(QName pName)
Set QName of node.
|
void |
INodeWriteTrx.setURI(String pUri)
Set URI of node.
|
void |
IIscsiWriteTrx.setValue(byte[] pValue)
Set value of data.
|
void |
INodeWriteTrx.setValue(String pValue)
Set value of node.
|
boolean |
ISession.truncate()
Truncating the resource where this
ISession is bound to. |
boolean |
IStorage.truncateResource(SessionConfiguration pResConf)
Truncating a resource.
|
Modifier and Type | Method and Description |
---|---|
void |
AbsAxis.close()
Closing the Transaction
|
Modifier and Type | Class and Description |
---|---|
class |
TTByteHandleException
Exception type for handle everything related to the handling of bytes especially within the io-layer.
|
class |
TTIOException
All Treetank IO Exception are wrapped in this class.
|
class |
TTThreadedException
This class holds all exceptions which can occure with the usage of
multithreaded exceptions.
|
class |
TTXPathException
Static class for handling the Enum as an
TTException . |
Modifier and Type | Method and Description |
---|---|
static boolean |
StorageManager.createResource(String name,
com.google.inject.AbstractModule module)
Create a new storage with the given name and backend.
|
static ISession |
StorageManager.getSession(String resourceName)
Retrieve a session from the system for the given Storagename
|
boolean |
Filelistener.removeFilelistener(String pResourcename)
You can remove a filelistener from the system identifying it with it's
Storagename.
|
static void |
StorageManager.removeResource(String pResourceName)
Via this method you can
remove a storage from the system.
|
void |
Filelistener.shutDownListener()
Shutdown listening to the defined folders and release all bonds to
Treetank.
|
void |
Filelistener.startListening()
Start listening to the defined folders.
|
Modifier and Type | Method and Description |
---|---|
void |
IBackend.close()
Closing this storage.
|
IBackendReader |
IBackend.getReader()
Getting a reader.
|
IBackendWriter |
IBackend.getWriter()
Getting a writer.
|
boolean |
IBackend.truncate()
Truncating a storage.
|
void |
IBackendWriter.write(IBucket bucket)
Writing a bucket related to the reference.
|
void |
IBackendWriter.writeUberBucket(UberBucket pUber)
Writing the
UberBucket including the pointer to the bucket. |
Modifier and Type | Method and Description |
---|---|
boolean |
BerkeleyStorage.truncate()
Truncating a storage.
|
void |
BerkeleyWriter.writeUberBucket(UberBucket pBucket)
Writing the
UberBucket including the pointer to the bucket. |
Modifier and Type | Method and Description |
---|---|
void |
CombinedStorage.close()
Closing this storage.
|
IBackendReader |
CombinedStorage.getReader()
Getting a reader.
|
IBackendWriter |
CombinedStorage.getWriter()
Getting a writer.
|
boolean |
CombinedStorage.truncate()
Truncating a storage.
|
void |
CombinedWriter.write(IBucket bucket)
Writing a bucket related to the reference.
|
void |
CombinedWriter.writeUberBucket(UberBucket pBucket)
Writing the
UberBucket including the pointer to the bucket. |
Modifier and Type | Method and Description |
---|---|
void |
JCloudsStorage.close()
Closing this storage.
|
IBackendReader |
JCloudsStorage.getReader()
Getting a reader.
|
IBackendWriter |
JCloudsStorage.getWriter()
Getting a writer.
|
boolean |
JCloudsStorage.truncate() |
void |
JCloudsWriter.writeUberBucket(UberBucket pBucket)
Writing the
UberBucket including the pointer to the bucket. |
Constructor and Description |
---|
JCloudsReader(org.jclouds.blobstore.BlobStore pBlobStore,
BucketFactory pFac,
IByteHandler.IByteHandlerPipeline pByteHandler,
String pResourceName) |
JCloudsWriter(org.jclouds.blobstore.BlobStore pBlobStore,
BucketFactory pFac,
IByteHandler.IByteHandlerPipeline pByteHandler,
String pResourceName) |
Modifier and Type | Method and Description |
---|---|
static TreetankConfiguration |
TreetankConfiguration.create(File schemaLocation,
File configFile,
ISession session,
String pTargetAddress)
Static method to create a new
TreetankConfiguration |
Constructor and Description |
---|
HybridTreetankStorageModule(long pNodeNumber,
ISession pSession)
Creates a storage module that is used by the target to handle I/O.
|
TreetankStorageModule(long pNodeNumber,
ISession pSession)
Creates a storage module that is used by the target to handle I/O.
|
Constructor and Description |
---|
DocumentWrapper(ISession pSession,
net.sf.saxon.Configuration pConfig)
Wrap a Treetank document.
|
NodeWrapper(DocumentWrapper pDocWrapper,
long pNodekeyToStart)
A node in the XML parse tree.
|
Modifier and Type | Method and Description |
---|---|
long |
DatabaseRepresentation.getLastRevision(String resourceName)
This method reads the existing database, and offers the last revision id
of the database
|
OutputStream |
DatabaseRepresentation.getModificHistory(String resourceName,
String revisionRange,
boolean nodeid,
OutputStream output,
boolean wrap)
This method reads the existing database, and offers all modifications of
the two given revisions
|
void |
DatabaseRepresentation.revertToRevision(String resourceName,
long backToRevision)
This method reverts the latest revision data to the requested.
|
boolean |
DatabaseRepresentation.shred(InputStream xmlInput,
String resource)
This method is responsible to save the XML file, which is in an
InputStream , as a TreeTank
object. |
Constructor and Description |
---|
DatabaseRepresentation(IStorage pDatabase,
IBackend.IBackendFactory pStorageFac,
IRevisioning pRevision) |
TreeTankMediator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
WorkerHelper.closeRTX(INodeReadTrx rtx,
ISession ses)
This method closes all open treetank connections concerning a
NodeReadTrx.
|
static void |
WorkerHelper.closeWTX(boolean abortTransaction,
INodeWriteTrx wtx,
ISession ses)
This method closes all open treetank connections concerning a
NodeWriteTrx.
|
void |
RestXPathProcessor.getXpathResource(String resourceName,
long rId,
String query,
boolean doNodeId,
Long doRevision,
OutputStream output,
boolean doWrap)
Getting part of the XML based on a XPath query
|
OutputStream |
RestXPathProcessor.getXpathResource(String resourceName,
String xpath,
boolean nodeid,
Long revision,
OutputStream output,
boolean wrapResult)
Getting part of the XML based on a XPath query
|
Modifier and Type | Method and Description |
---|---|
static void |
DiffFactory.invokeFullDiff(DiffFactory.Builder paramBuilder)
Do a full diff.
|
static void |
DiffFactory.invokeStructuralDiff(DiffFactory.Builder paramBuilder)
Do a structural diff.
|
Constructor and Description |
---|
FMESVisitor(ISession paramSession,
Map<INode,Boolean> paramInOrder,
Map<INode,Long> paramDescendants)
Constructor.
|
LabelFMESVisitor(ISession paramSession)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Stack<Long> |
XMLShredder.addNewElement(Stack<Long> paramLeftSiblingKeyStack,
StartElement paramEvent)
Add a new element node.
|
protected Stack<Long> |
XMLShredder.addNewText(Stack<Long> paramLeftSiblingKeyStack,
String paramText)
Add a new text node.
|
Void |
XMLUpdateShredder.call()
Invoking the shredder.
|
Void |
XMLShredder.call()
Invoking the shredder.
|
protected void |
XMLShredder.insertNewContent()
Insert new content based on a StAX parser
XMLStreamReader . |
Constructor and Description |
---|
XMLShredder(INodeWriteTrx paramWtx,
XMLEventReader paramReader,
EShredderInsert paramAddAsFirstChild)
Normal constructor to invoke a shredding process on a existing
INodeWriteTrx . |
XMLShredder(INodeWriteTrx paramWtx,
XMLEventReader paramReader,
EShredderInsert paramAddAsFirstChild,
EShredderCommit paramCommit)
Normal constructor to invoke a shredding process on a existing
INodeWriteTrx . |
XMLUpdateShredder(INodeWriteTrx paramWtx,
XMLEventReader paramReader,
EShredderInsert paramAddAsFirstChild,
Object paramData,
EShredderCommit paramCommit)
Normal constructor to invoke a shredding process on a existing
INodeWriteTrx . |
Copyright © 2013. All Rights Reserved.