|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.update.store.llImpl.LLStoreSet
public class LLStoreSet
A simple implementation (XML-Tokens as a doubly linked list without an index) of a store set.
Constructor Summary | |
---|---|
LLStoreSet()
|
Method Summary | |
---|---|
void |
addCollection(java.lang.String uri,
java.util.Vector coll)
Add a collection to the storeset |
void |
addRollback(RollbackItem ri)
|
void |
addStoreToSerialize(UpdateableStore store,
java.lang.String uri)
Adds a store to the list of stores to be serialized at PUL apply |
void |
cleanTransationStores(long transactionID)
Remove all temporary stores that are connected to the give transaction ID |
StoreSet |
copy()
Create a shallow copy of this Store Set, retaining all the contained stores and collections |
FullTextStore |
createFulltextStore(java.lang.String uri,
XDMIterator initialDataIterator)
Creates a full text store Note: An additional version of this function will be implemented later, where the types of full-text indexes can be chosen (currently, all indexes are always generated) |
Source |
createStore(java.lang.String uri,
XDMIterator initialDataIterator,
boolean maybeSerialized)
Creates a Store with the passed URI. |
Source |
createStore(XDMIterator initialDataIterator)
Creates a Store with an automatically generated URI. |
StreamStore |
createStreamStore(int type,
java.lang.String uri)
Create a stream store, in which the XDM data can be possibly infinite, contents are lazily materialized and there are optimizations for access patterns and other parameters In this version, the store type is explicitly requested |
StreamStore |
createStreamStore(StreamStoreSettings sts,
java.lang.String uri)
Create a stream store, in which the XDM data can be possibly infinite, contents are lazily materialized and there are optimizations for access patterns and other parameters In this version, the store type is explicitly requested |
UpdateableStore |
createTransactionStore(long transactionID)
Creates a temporary Store that belongs to a particular transaction, e.g. |
UpdateableStore |
createUpdateableStore(java.lang.String uri,
XDMIterator initialDataIterator,
boolean newIds,
boolean serializeable)
Creates an updateable store. |
void |
deleteCollection(java.lang.String uri)
Delete a collection |
void |
freeRessources()
Discard all stores and collections that have been generated inside this store set |
ActiveStore[] |
getActiveStores()
Get all active stores in this store set, i.e. |
Source[] |
getAllStores()
Returns all stores |
XDMIterator[] |
getCollection(java.lang.String uri)
Get the contents of a collection |
FullTextStore[] |
getFulltextStores()
Retrieve all fulltext stores in this store set |
UpdateableStore |
getNewStoreForItem(Identifier item,
java.lang.String uri,
boolean serializeable)
Create a new updateable store (copy) for an existing item |
Identifier |
getParentId(Identifier id)
Returns the Identifier of the event with the passed identifier. |
Source |
getStore(java.lang.String uri)
Returns the Store which has the passed URI as identifier |
StreamStore[] |
getStreamStores()
Retrieve all streams/stream stores associated with this store set |
UpdateableStore[] |
getUpdateableStores()
Returns all updateable stores |
boolean |
hasParent(Identifier id)
Returns true if the event with the passed identifier has a parent. |
boolean |
isAtomicMode()
|
boolean |
isUseFulltextStores()
Check if fulltext stores are used |
boolean |
isUseUpdateStores()
Check if updateable stores are used |
void |
removeStore(Source store)
Remove store from this store set |
void |
serializeStores(boolean createBackup,
java.lang.String baseURI)
Serialize the stores in this storeset into an XML file. |
void |
setSerializeStores(boolean serializeStores)
|
void |
setUseFulltextStores(boolean fulltextStores)
Stores created without additional parameters should support fulltext operations |
void |
setUseUpdateStores(boolean updateStores)
Stores created without additional parameters should be updateable |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean printReferencers)
Gives the possibility to add to each source the number of referencers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LLStoreSet()
Method Detail |
---|
public Source createStore(XDMIterator initialDataIterator) throws MXQueryException
StoreSet
createStore
in interface StoreSet
initialDataIterator
- TODO
MXQueryException
public Source createStore(java.lang.String uri, XDMIterator initialDataIterator, boolean maybeSerialized) throws MXQueryException
StoreSet
createStore
in interface StoreSet
initialDataIterator
- Iterator to load the initial contents of this store frommaybeSerialized
- TODO
MXQueryException
public UpdateableStore createTransactionStore(long transactionID)
StoreSet
createTransactionStore
in interface StoreSet
transactionID
- Identifier for a transaction
public void cleanTransationStores(long transactionID)
StoreSet
cleanTransationStores
in interface StoreSet
public Source getStore(java.lang.String uri)
StoreSet
getStore
in interface StoreSet
uri
- The identifier of the store
public Source[] getAllStores()
StoreSet
getAllStores
in interface StoreSet
public UpdateableStore[] getUpdateableStores()
StoreSet
getUpdateableStores
in interface StoreSet
public Identifier getParentId(Identifier id) throws MXQueryException
StoreSet
getParentId
in interface StoreSet
MXQueryException
public boolean hasParent(Identifier id) throws MXQueryException
StoreSet
hasParent
in interface StoreSet
MXQueryException
public void removeStore(Source store)
StoreSet
removeStore
in interface StoreSet
public boolean isAtomicMode()
public void addRollback(RollbackItem ri)
public void freeRessources()
StoreSet
freeRessources
in interface StoreSet
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean printReferencers)
printReferencers
-
public StoreSet copy()
StoreSet
copy
in interface StoreSet
public UpdateableStore getNewStoreForItem(Identifier item, java.lang.String uri, boolean serializeable) throws MXQueryException
StoreSet
getNewStoreForItem
in interface StoreSet
item
- the node identifier of the itemuri
- identifier of store, for serializeable stores the location URIserializeable
- shall this store be considered for serialization/persistence to disk
MXQueryException
public void addStoreToSerialize(UpdateableStore store, java.lang.String uri)
addStoreToSerialize
in interface StoreSet
store
- Store to serializeuri
- Location where to store the contents of the storepublic void serializeStores(boolean createBackup, java.lang.String baseURI) throws MXQueryException
StoreSet
serializeStores
in interface StoreSet
createBackup
- Create backup file of the overwritten files
MXQueryException
public void setSerializeStores(boolean serializeStores)
setSerializeStores
in interface StoreSet
serializeStores
- if true, stores to be serialized should be collected, otherwise they are notpublic void setUseFulltextStores(boolean fulltextStores)
StoreSet
setUseFulltextStores
in interface StoreSet
fulltextStores
- if true, use fulltext Stores,public void setUseUpdateStores(boolean updateStores)
StoreSet
setUseUpdateStores
in interface StoreSet
public UpdateableStore createUpdateableStore(java.lang.String uri, XDMIterator initialDataIterator, boolean newIds, boolean serializeable)
StoreSet
createUpdateableStore
in interface StoreSet
uri
- identifier of store, for serializeable stores the location URIinitialDataIterator
- source of initialnewIds
- Shall new node IDs be assigned ?serializeable
- shall this store be considered for serialization/persistence to disk
public boolean isUseFulltextStores()
StoreSet
isUseFulltextStores
in interface StoreSet
public boolean isUseUpdateStores()
StoreSet
isUseUpdateStores
in interface StoreSet
public XDMIterator[] getCollection(java.lang.String uri)
StoreSet
getCollection
in interface StoreSet
uri
- The identifier of the collection
public void addCollection(java.lang.String uri, java.util.Vector coll) throws MXQueryException
StoreSet
addCollection
in interface StoreSet
uri
- Collection identifiercoll
- Vector of iterators representing the contents of the collection
MXQueryException
public void deleteCollection(java.lang.String uri) throws MXQueryException
StoreSet
deleteCollection
in interface StoreSet
uri
- Collection identifier
MXQueryException
public FullTextStore createFulltextStore(java.lang.String uri, XDMIterator initialDataIterator) throws MXQueryException
StoreSet
createFulltextStore
in interface StoreSet
uri
- identifier of store
MXQueryException
public StreamStore createStreamStore(int type, java.lang.String uri) throws MXQueryException
StoreSet
createStreamStore
in interface StoreSet
type
- A SMS store typeuri
- the identifier of this stream
MXQueryException
public StreamStore createStreamStore(StreamStoreSettings sts, java.lang.String uri) throws MXQueryException
StoreSet
createStreamStore
in interface StoreSet
sts
- the stream store settings for this storeuri
- the identifier for this store
MXQueryException
public FullTextStore[] getFulltextStores()
StoreSet
getFulltextStores
in interface StoreSet
public StreamStore[] getStreamStores()
StoreSet
getStreamStores
in interface StoreSet
public ActiveStore[] getActiveStores()
StoreSet
getActiveStores
in interface StoreSet
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |