public interface NoSqlAdapter
AbstractNoSqlAdapter
to be compatible for future extensions.Modifier and Type | Method and Description |
---|---|
void |
checkConnection()
Checks whether the connection to the NoSQL database is possible
|
void |
createIndexDefinitions()
Creates index definitions for accessing the NoSQL database.
|
boolean |
deleteRecursive(String path)
Remove data including all path-related children from NoSQL database.
|
NoSqlData |
get(String path)
Get data for a single resource from NoSQL database.
|
Iterator<NoSqlData> |
getChildren(String parentPath)
Get data for all children of a resource from NoSQL database.
|
Iterator<NoSqlData> |
query(String query,
String language)
Query for data.
|
boolean |
store(NoSqlData data)
Store data with the given path in NoSQL database.
|
boolean |
validPath(String path)
True if the given path is valid and supported by the NoSQL database.
|
boolean validPath(String path)
path
- PathNoSqlData get(String path)
path
- PathIterator<NoSqlData> getChildren(String parentPath)
parentPath
- Parent pathboolean store(NoSqlData data)
data
- Data with pathboolean deleteRecursive(String path)
path
- Path to removeIterator<NoSqlData> query(String query, String language)
query
- Querylanguage
- Query languagevoid checkConnection() throws org.apache.sling.api.resource.LoginException
org.apache.sling.api.resource.LoginException
- in case of any errorsvoid createIndexDefinitions()
checkConnection()
call succeeds.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.