|
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 |
public interface StoreSet
Interface of classes that contain a collection of stores.
Method Summary | |
---|---|
void |
addCollection(java.lang.String uri,
java.util.Vector coll)
Add a collection to the storeset |
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 identifier)
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 identifier)
Returns true if the event with the passed identifier has a parent. |
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 backup,
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 |
Method Detail |
---|
Source createStore(XDMIterator initialDataIterator) throws MXQueryException
initialDataIterator
- TODO
MXQueryException
UpdateableStore createTransactionStore(long transactionID)
transactionID
- Identifier for a transaction
void cleanTransationStores(long transactionID)
transactionID
- Source createStore(java.lang.String uri, XDMIterator initialDataIterator, boolean maybeSerialized) throws MXQueryException
uri
- initialDataIterator
- Iterator to load the initial contents of this store frommaybeSerialized
- TODO
MXQueryException
UpdateableStore createUpdateableStore(java.lang.String uri, XDMIterator initialDataIterator, boolean newIds, boolean serializeable)
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
UpdateableStore getNewStoreForItem(Identifier item, java.lang.String uri, boolean serializeable) throws MXQueryException
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
void removeStore(Source store)
store
- FullTextStore createFulltextStore(java.lang.String uri, XDMIterator initialDataIterator) throws MXQueryException
uri
- identifier of store
MXQueryException
StreamStore createStreamStore(int type, java.lang.String uri) throws MXQueryException
type
- A SMS store typeuri
- the identifier of this stream
MXQueryException
StreamStore createStreamStore(StreamStoreSettings sts, java.lang.String uri) throws MXQueryException
sts
- the stream store settings for this storeuri
- the identifier for this store
MXQueryException
Source getStore(java.lang.String uri)
uri
- The identifier of the store
Source[] getAllStores()
UpdateableStore[] getUpdateableStores()
FullTextStore[] getFulltextStores()
StreamStore[] getStreamStores()
ActiveStore[] getActiveStores()
Identifier getParentId(Identifier identifier) throws MXQueryException
identifier
-
MXQueryException
boolean hasParent(Identifier identifier) throws MXQueryException
identifier
-
MXQueryException
void addStoreToSerialize(UpdateableStore store, java.lang.String uri)
store
- Store to serializeuri
- Location where to store the contents of the storevoid serializeStores(boolean backup, java.lang.String baseURI) throws MXQueryException
backup
- Create backup file of the overwritten files
MXQueryException
void setSerializeStores(boolean serializeStores)
serializeStores
- if true, stores to be serialized should be collected, otherwise they are notvoid setUseUpdateStores(boolean updateStores)
updateStores
- boolean isUseUpdateStores()
void setUseFulltextStores(boolean fulltextStores)
fulltextStores
- if true, use fulltext Stores,boolean isUseFulltextStores()
void freeRessources()
StoreSet copy()
XDMIterator[] getCollection(java.lang.String uri)
uri
- The identifier of the collection
void addCollection(java.lang.String uri, java.util.Vector coll) throws MXQueryException
uri
- Collection identifiercoll
- Vector of iterators representing the contents of the collection
MXQueryException
void deleteCollection(java.lang.String uri) throws MXQueryException
uri
- Collection identifier
MXQueryException
|
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 |