public interface ISyncAdvancedSessionOperation extends IAdvancedDocumentSessionOperations
Modifier and Type | Method and Description |
---|---|
<T> IDocumentQuery<T> |
documentQuery(Class<T> clazz)
Dynamically query RavenDB using Lucene syntax
|
<T,S extends AbstractIndexCreationTask> |
documentQuery(Class<T> clazz,
Class<S> indexClass)
Queries the index specified by
|
<T> IDocumentQuery<T> |
documentQuery(Class<T> clazz,
String indexName)
Query the specified index using Lucene syntax
|
<T> IDocumentQuery<T> |
documentQuery(Class<T> clazz,
String indexName,
boolean isMapReduce)
Query the specified index using Lucene syntax
|
IEagerSessionOperations |
eagerly()
Access the eager operations
|
String |
getDocumentUrl(Object entity)
Returns full document url for a given entity
|
ILazySessionOperations |
lazily()
Access the lazy operations
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix)
Loads multiple entities that contain common prefix.
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches)
Loads multiple entities that contain common prefix.
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches,
int start)
Loads multiple entities that contain common prefix.
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches,
int start,
int pageSize)
Loads multiple entities that contain common prefix.
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude)
Loads multiple entities that contain common prefix.
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation)
Loads multiple entities that contain common prefix.
|
<T> T[] |
loadStartingWith(Class<T> clazz,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation,
String skipAfter)
Loads multiple entities that contain common prefix.
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches,
int start)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches,
int start,
int pageSize)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation,
LoadConfigurationFactory configure)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<TResult,TTransformer extends AbstractTransformerCreationTask> |
loadStartingWith(Class<TResult> clazz,
Class<TTransformer> transformerClass,
String keyPrefix,
String matches,
int start,
int pageSize,
String exclude,
RavenPagingInformation pagingInformation,
LoadConfigurationFactory configure,
String skipAfter)
Loads documents with the specified key prefix and applies the specified results transformer against the results
|
<T> T[] |
moreLikeThis(Class<T> entityClass,
Class<? extends AbstractIndexCreationTask> indexCreator,
Class<? extends AbstractTransformerCreationTask> transformerClass,
MoreLikeThisQuery parameters) |
<T> T[] |
moreLikeThis(Class<T> entityClass,
Class<? extends AbstractIndexCreationTask> indexCreator,
Class<? extends AbstractTransformerCreationTask> transformerClass,
String documentId) |
<T> T[] |
moreLikeThis(Class<T> entityClass,
Class<? extends AbstractIndexCreationTask> indexCreator,
MoreLikeThisQuery parameters) |
<T> T[] |
moreLikeThis(Class<T> entityClass,
Class<? extends AbstractIndexCreationTask> indexCreator,
String documentId) |
<T> T[] |
moreLikeThis(Class<T> entityClass,
String index,
String documentId) |
<T> T[] |
moreLikeThis(Class<T> entityClass,
String index,
String transformer,
MoreLikeThisQuery parameters) |
<T> T[] |
moreLikeThis(Class<T> entityClass,
String index,
String transformer,
String documentId) |
FacetResults[] |
multiFacetedSearch(FacetQuery... queries)
Sends a multiple faceted queries in a single request and calculates the facet results for each of them
|
<T> void |
refresh(T entity)
Updates entity with latest changes from server
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag,
String startsWith)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag,
String startsWith,
String matches)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag,
String startsWith,
String matches,
int start)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag,
String startsWith,
String matches,
int start,
int pageSize)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag,
String startsWith,
String matches,
int start,
int pageSize,
RavenPagingInformation pagingInformation)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(Class<T> entityClass,
Etag fromEtag,
String startsWith,
String matches,
int start,
int pageSize,
RavenPagingInformation pagingInformation,
String skipAfter)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IDocumentQuery<T> query)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IDocumentQuery<T> query,
Reference<QueryHeaderInformation> queryHeaderInformation)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IRavenQueryable<T> query)
Stream the results on the query to the client, converting them to
Java types along the way.
|
<T> CloseableIterator<StreamResult<T>> |
stream(IRavenQueryable<T> query,
Reference<QueryHeaderInformation> queryHeaderInformation)
Stream the results on the query to the client, converting them to
Java types along the way.
|
clear, defer, evict, explicitlyVersion, getDocumentId, getDocumentStore, getEtagFor, getExternalState, getMaxNumberOfRequestsPerSession, getMetadataFor, getNonAuthoritativeInformationTimeout, getNumberOfRequests, getStoreIdentifier, hasChanged, hasChanges, ignoreChangesFor, isAllowNonAuthoritativeInformation, isLoaded, isUseOptimisticConcurrency, markReadOnly, setAllowNonAuthoritativeInformation, setMaxNumberOfRequestsPerSession, setNonAuthoritativeInformationTimeout, setUseOptimisticConcurrency, unregisterMissing, whatChanged
<T> void refresh(T entity)
entity
- Instance of an entity that will be refreshed<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix, String matches)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start, int pageSize)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server side<T> T[] loadStartingWith(Class<T> clazz, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation, String skipAfter)
clazz
- Defines type of objectkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server sideskipAfter
- skip document fetching until given key is found and return documents after that key (default: null)<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches, int start)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches, int start, int pageSize)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches, int start, int pageSize, String exclude)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server side<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation, LoadConfigurationFactory configure)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server sideconfigure
- Additional configuration options for operation e.g. AddTransformerParameter<TResult,TTransformer extends AbstractTransformerCreationTask> TResult[] loadStartingWith(Class<TResult> clazz, Class<TTransformer> transformerClass, String keyPrefix, String matches, int start, int pageSize, String exclude, RavenPagingInformation pagingInformation, LoadConfigurationFactory configure, String skipAfter)
clazz
- Defines type of objecttransformerClass
- The transformer to use in this load operationkeyPrefix
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped. By default: 0.pageSize
- Maximum number of documents that will be retrieved. By default: 25.exclude
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should not be matched ('?' any single character, '*' any characters)pagingInformation
- Used to perform rapid pagination on a server sideconfigure
- Additional configuration options for operation e.g. AddTransformerParameterskipAfter
- Skip document fetching until given key is found and return documents after that key (default: null)ILazySessionOperations lazily()
IEagerSessionOperations eagerly()
<T,S extends AbstractIndexCreationTask> IDocumentQuery<T> documentQuery(Class<T> clazz, Class<S> indexClass)
clazz
- The result class of the query.indexClass
- The type of the index creator.<T> IDocumentQuery<T> documentQuery(Class<T> clazz, String indexName, boolean isMapReduce)
indexName
- Name of the index.isMapReduce
- Control how we treat identifier properties in map/reduce indexes<T> IDocumentQuery<T> documentQuery(Class<T> clazz, String indexName)
clazz
- indexName
- Name of the index.<T> IDocumentQuery<T> documentQuery(Class<T> clazz)
clazz
- String getDocumentUrl(Object entity)
entity
- Instance of an entity for which url will be returned<T> CloseableIterator<StreamResult<T>> stream(IRavenQueryable<T> query)
query
- Query to stream results for<T> CloseableIterator<StreamResult<T>> stream(IRavenQueryable<T> query, Reference<QueryHeaderInformation> queryHeaderInformation)
query
- Query to stream results forqueryHeaderInformation
- Information about performed query<T> CloseableIterator<StreamResult<T>> stream(IDocumentQuery<T> query)
query
- Query to stream results for<T> CloseableIterator<StreamResult<T>> stream(IDocumentQuery<T> query, Reference<QueryHeaderInformation> queryHeaderInformation)
query
- Query to stream results forqueryHeaderInformation
- Information about performed query<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass)
entityClass
- <T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag)
fromEtag
- ETag of a document from which stream should start<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag, String startsWith)
fromEtag
- ETag of a document from which stream should startstartsWith
- Prefix for which documents should be returned e.g. "products/"<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag, String startsWith, String matches)
fromEtag
- ETag of a document from which stream should startstartsWith
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag, String startsWith, String matches, int start)
fromEtag
- ETag of a document from which stream should startstartsWith
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skipped<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag, String startsWith, String matches, int start, int pageSize)
fromEtag
- ETag of a document from which stream should startstartsWith
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skippedpageSize
- Maximum number of documents that will be retrieved<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag, String startsWith, String matches, int start, int pageSize, RavenPagingInformation pagingInformation)
entityClass
- fromEtag
- ETag of a document from which stream should startstartsWith
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skippedpageSize
- Maximum number of documents that will be retrievedpagingInformation
- Used to perform rapid pagination on a server side<T> CloseableIterator<StreamResult<T>> stream(Class<T> entityClass, Etag fromEtag, String startsWith, String matches, int start, int pageSize, RavenPagingInformation pagingInformation, String skipAfter)
entityClass
- fromEtag
- ETag of a document from which stream should startstartsWith
- Prefix for which documents should be returned e.g. "products/"matches
- Pipe ('|') separated values for which document keys (after 'keyPrefix') should be matched ('?' any single character, '*' any characters)start
- Number of documents that should be skippedpageSize
- Maximum number of documents that will be retrievedpagingInformation
- Used to perform rapid pagination on a server sideskipAfter
- Skip document fetching until given key is found and return documents after that key (default: null)FacetResults[] multiFacetedSearch(FacetQuery... queries)
queries
- Array of the faceted queries that will be executed on the server-side<T> T[] moreLikeThis(Class<T> entityClass, Class<? extends AbstractIndexCreationTask> indexCreator, String documentId)
<T> T[] moreLikeThis(Class<T> entityClass, Class<? extends AbstractIndexCreationTask> indexCreator, MoreLikeThisQuery parameters)
<T> T[] moreLikeThis(Class<T> entityClass, Class<? extends AbstractIndexCreationTask> indexCreator, Class<? extends AbstractTransformerCreationTask> transformerClass, String documentId)
<T> T[] moreLikeThis(Class<T> entityClass, Class<? extends AbstractIndexCreationTask> indexCreator, Class<? extends AbstractTransformerCreationTask> transformerClass, MoreLikeThisQuery parameters)
<T> T[] moreLikeThis(Class<T> entityClass, String index, String transformer, String documentId)
<T> T[] moreLikeThis(Class<T> entityClass, String index, String transformer, MoreLikeThisQuery parameters)
Copyright © 2016. All Rights Reserved.