|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchematicDb
A store for JSON documents and other binary content, plus a library of JSON Schema documents used to describe and validate the stored documents.
Method Summary | |
---|---|
boolean |
containsKey(String key)
Determine whether the database contains an entry with the supplied key. |
SchematicEntry |
get(String key)
Get the entry with the supplied key. |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
getAsync(String key)
Asynchronous version of get(String) . |
org.infinispan.Cache<String,SchematicEntry> |
getCache()
Get the cache that backs this schematic database. |
String |
getDescription()
Get the description of this database. |
String |
getName()
Get the name of this database. |
SchemaLibrary |
getSchemaLibrary()
Get the reference to the SchemaLibrary for this database. |
SchematicEntry |
put(Document entryDocument)
Store the supplied document and metadata at the given key. |
SchematicEntry |
put(String key,
Binary binaryContent,
Document metadata)
Store the supplied binary value and metadata at the given key. |
SchematicEntry |
put(String key,
Document document,
Document metadata)
Store the supplied document and metadata at the given key. |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
putAsync(String key,
Binary binaryContent,
Document metadata)
Asynchronous version of put(String, Binary, Document) . |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
putAsync(String key,
Document document,
Document metadata)
Asynchronous version of put(String, Document, Document) . |
SchematicEntry |
putIfAbsent(Document entryDocument)
Store the supplied document and metadata at the given key. |
SchematicEntry |
putIfAbsent(String key,
Binary binaryContent,
Document metadata)
Store the supplied document and metadata at the given key. |
SchematicEntry |
putIfAbsent(String key,
Document document,
Document metadata)
Store the supplied document and metadata at the given key. |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
putIfAbsentAsync(String key,
Binary binaryContent,
Document metadata)
Asynchronous version of putIfAbsent(String, Binary, Document) . |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
putIfAbsentAsync(String key,
Document document,
Document metadata)
Asynchronous version of putIfAbsent(String, Document, Document) . |
SchematicEntry |
remove(String key)
Remove the existing document at the given key. |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
removeAsync(String key)
Asynchronous version of remove(String) . |
SchematicEntry |
replace(String key,
Binary binaryContent,
Document metadata)
Replace the existing document and metadata at the given key with the document that is supplied. |
SchematicEntry |
replace(String key,
Document document,
Document metadata)
Replace the existing document and metadata at the given key with the document that is supplied. |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
replaceAsync(String key,
Binary binaryContent,
Document metadata)
Asynchronous version of replace(String, Binary, Document) . |
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> |
replaceAsync(String key,
Document document,
Document metadata)
Asynchronous version of replace(String, Document, Document) . |
SchemaLibrary.Results |
validate(String key)
Validate the JSON document store at the specified key. |
Map<String,SchemaLibrary.Results> |
validate(String firstKey,
String... additionalKeys)
Execute a Map-Reduce task to validate all JSON documents stored within this database, using this database's JSON Schema library . |
Map<String,SchemaLibrary.Results> |
validateAll()
Validate all JSON documents stored within this database, using this database's JSON Schema
library . |
Methods inherited from interface org.infinispan.lifecycle.Lifecycle |
---|
start, stop |
Method Detail |
---|
String getName()
String getDescription()
SchemaLibrary getSchemaLibrary()
org.infinispan.Cache<String,SchematicEntry> getCache()
Map<String,SchemaLibrary.Results> validateAll()
JSON Schema
library
. This method works even when the database is distributed, and it blocks until the task is completed.
Map<String,SchemaLibrary.Results> validate(String firstKey, String... additionalKeys)
JSON Schema library
. This method works even when the database is distributed, and it blocks
until the task is completed.
firstKey
- the first key of the document that is to be validatedadditionalKeys
- the additional keys of the documents that are to be validated
SchemaLibrary.Results validate(String key)
key
- the key or identifier for the document
SchematicEntry get(String key)
key
- the key or identifier for the document
boolean containsKey(String key)
key
- the key or identifier for the document
SchematicEntry put(String key, Document document, Document metadata)
key
- the key or identifier for the documentdocument
- the document that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
put(String, Binary, Document)
,
putIfAbsent(String, Binary, Document)
,
putIfAbsent(String, Document, Document)
SchematicEntry put(String key, Binary binaryContent, Document metadata)
key
- the key or identifier for the documentbinaryContent
- the binary content that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
SchematicEntry put(Document entryDocument)
entryDocument
- the document that contains the metadata document, content document, and key
put(String, Binary, Document)
,
putIfAbsent(String, Binary, Document)
,
putIfAbsent(String, Document, Document)
SchematicEntry putIfAbsent(String key, Document document, Document metadata)
key
- the key or identifier for the documentdocument
- the document that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
SchematicEntry putIfAbsent(String key, Binary binaryContent, Document metadata)
key
- the key or identifier for the documentbinaryContent
- the binary content that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
SchematicEntry putIfAbsent(Document entryDocument)
entryDocument
- the document that contains the metadata document, content document, and key
put(String, Binary, Document)
,
putIfAbsent(String, Binary, Document)
,
putIfAbsent(String, Document, Document)
SchematicEntry replace(String key, Document document, Document metadata)
key
- the key or identifier for the documentdocument
- the new document that is to replace the existing document (or binary content)metadata
- the metadata that is to be stored with the replacement document; may be null if there is no metadata for
the replacement
SchematicEntry replace(String key, Binary binaryContent, Document metadata)
key
- the key or identifier for the documentbinaryContent
- the binary content that is to replace the existing binary content (or document)metadata
- the metadata that is to be stored with the replacement content; may be null if there is no metadata for the
replacement
SchematicEntry remove(String key)
key
- the key or identifier for the document
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> getAsync(String key)
get(String)
. This method does not block on remote calls, even if the library cache mode is
synchronous.
key
- the key or identifier for the document
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> putAsync(String key, Document document, Document metadata)
put(String, Document, Document)
. This method does not block on remote calls, even if the
library cache mode is synchronous.
key
- the key or identifier for the documentdocument
- the document that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> putAsync(String key, Binary binaryContent, Document metadata)
put(String, Binary, Document)
. This method does not block on remote calls, even if the
library cache mode is synchronous.
key
- the key or identifier for the documentbinaryContent
- the binary content that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> putIfAbsentAsync(String key, Document document, Document metadata)
putIfAbsent(String, Document, Document)
. This method does not block on remote calls, even
key
- the key or identifier for the documentdocument
- the document that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> putIfAbsentAsync(String key, Binary binaryContent, Document metadata)
putIfAbsent(String, Binary, Document)
. This method does not block on remote calls, even
key
- the key or identifier for the documentbinaryContent
- the binary content that is to be storedmetadata
- the metadata that is to be stored; may be null if there is no metadata
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> replaceAsync(String key, Document document, Document metadata)
replace(String, Document, Document)
. This method does not block on remote calls, even if
the library cache mode is synchronous.
key
- the key or identifier for the documentdocument
- the new document that is to replace the existing document (or binary content)metadata
- the metadata that is to be stored with the replacement document; may be null if there is no metadata for
the replacement
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> replaceAsync(String key, Binary binaryContent, Document metadata)
replace(String, Binary, Document)
. This method does not block on remote calls, even if the
library cache mode is synchronous.
key
- the key or identifier for the documentbinaryContent
- the new binary content that is to replace the existing content (or document)metadata
- the metadata that is to be stored with the replacement document; may be null if there is no metadata for
the replacement
org.infinispan.util.concurrent.NotifyingFuture<SchematicEntry> removeAsync(String key)
remove(String)
. This method does not block on remote calls, even if the library cache mode
is synchronous.
key
- the key or identifier for the document
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |