Package | Description |
---|---|
net.ravendb.client | |
net.ravendb.client.document | |
net.ravendb.client.listeners |
Modifier and Type | Method and Description |
---|---|
IDocumentQueryCustomization |
IDocumentQueryCustomization.beforeQueryExecution(Action1<IndexQuery> action)
Allow you to modify the index query before it is executed
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.customSortUsing(String typeName)
Sort using custom sorter on the server
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.customSortUsing(String typeName,
boolean descending)
Sort using custom sorter on the server
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.highlight(String fieldName,
int fragmentLength,
int fragmentCount,
Reference<FieldHighlightings> highlightings)
Adds matches highlighting for the specified field.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.highlight(String fieldName,
int fragmentLength,
int fragmentCount,
String fragmentsField)
Adds matches highlighting for the specified field.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.highlight(String fieldName,
String fieldKeyName,
int fragmentLength,
int fragmentCount,
Reference<FieldHighlightings> highlightings)
Adds matches highlighting for the specified field.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.include(Class<?> targetClass,
com.mysema.query.types.Path<?> path)
Includes the specified path in the query, loading the document specified in that path
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.include(com.mysema.query.types.Path<?> path)
Includes the specified path in the query, loading the document specified in that path
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.include(String path)
Includes the specified path in the query, loading the document specified in that path
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.noCaching()
Disables caching for query results.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.noTracking()
Disables tracking for queried entities by Raven's Unit of Work.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.randomOrdering()
Order the search results randomly
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.randomOrdering(String seed)
Order the search results randomly using the specified seed
this is useful if you want to have repeatable random queries
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.relatesToShape(String fieldName,
String shapeWKT,
SpatialOptions.SpatialRelation rel)
Filter matches based on a given shape - only documents with the shape defined in fieldName that
have a relation rel with the given shapeWKT will be returned
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.setAllowMultipleIndexEntriesForSameDocumentToResultTransformer(boolean val)
If set to true, this property will send multiple index entries from the same document (assuming the index project them)
to the result transformer function.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.setHighlighterTags(String[] preTags,
String[] postTags)
Sets the tags to highlight matches with.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.setHighlighterTags(String preTag,
String postTag)
Sets the tags to highlight matches with.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.showTimings()
Enables calculation of timings for various parts of a query (Lucene search, loading documents, transforming results).
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.sortByDistance()
When using spatial queries, instruct the query to sort by the distance from the origin point
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.sortByDistance(double lat,
double lng)
When using spatial queries, instruct the query to sort by the distance from the origin point
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.sortByDistance(double lat,
double lng,
String sortedFieldName)
When using spatial queries, instruct the query to sort by the distance from the origin point
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.spatial(String fieldName,
SpatialCriteria criteria)
Ability to use one factory to determine spatial shape that will be used in query.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.transformResults(ShardReduceFunction func) |
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResults()
EXPERT ONLY: Instructs the query to wait for non stale results.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResults(long waitTimeout)
EXPERT ONLY: Instructs the query to wait for non stale results for the specified wait timeout.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOf(Date cutOff)
Instructs the query to wait for non stale results as of the cutoff date.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOf(Date cutOff,
long waitTimeout)
Instructs the query to wait for non stale results as of the cutoff date for the specified timeout
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOf(Etag cutOffEtag)
Instructs the query to wait for non stale results as of the cutoff etag.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOf(Etag cutOffEtag,
long waitTimeout)
Instructs the query to wait for non stale results as of the cutoff etag for the specified timeout.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOfLastWrite()
Instructs the query to wait for non stale results as of the last write made by any session belonging to the
current document store.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOfLastWrite(long waitTimeout)
Instructs the query to wait for non stale results as of the last write made by any session belonging to the
current document store.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOfNow()
Instructs the query to wait for non stale results as of now.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.waitForNonStaleResultsAsOfNow(long waitTimeout)
Instructs the query to wait for non stale results as of now for the specified timeout.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.withinRadiusOf(double radius,
double latitude,
double longitude)
Filter matches to be inside the specified radius.
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.withinRadiusOf(double radius,
double latitude,
double longitude,
SpatialOptions.SpatialUnits radiusUnits)
Filter matches to be inside the specified radius
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.withinRadiusOf(String fieldName,
double radius,
double latitude,
double longitude)
Filter matches to be inside the specified radius
|
IDocumentQueryCustomization |
IDocumentQueryCustomization.withinRadiusOf(String fieldName,
double radius,
double latitude,
double longitude,
SpatialOptions.SpatialUnits radiusUnits)
Filter matches to be inside the specified radius
|
Modifier and Type | Class and Description |
---|---|
class |
DocumentQueryCustomization |
class |
DocumentQueryCustomizationFactory
Allows query customization
|
Modifier and Type | Method and Description |
---|---|
IDocumentQueryCustomization |
DocumentQueryCustomization.beforeQueryExecution(Action1<IndexQuery> action) |
IDocumentQueryCustomization |
DocumentQueryCustomization.customSortUsing(String typeName) |
IDocumentQueryCustomization |
DocumentQueryCustomization.customSortUsing(String typeName,
boolean descending) |
IDocumentQueryCustomization |
DocumentQueryCustomization.highlight(String fieldName,
int fragmentLength,
int fragmentCount,
Reference<FieldHighlightings> highlightings) |
IDocumentQueryCustomization |
DocumentQueryCustomization.highlight(String fieldName,
int fragmentLength,
int fragmentCount,
String fragmentsField) |
IDocumentQueryCustomization |
DocumentQueryCustomization.highlight(String fieldName,
String fieldKeyName,
int fragmentLength,
int fragmentCount,
Reference<FieldHighlightings> highlightings) |
IDocumentQueryCustomization |
DocumentQueryCustomization.include(Class<?> targetClass,
com.mysema.query.types.Path<?> path) |
IDocumentQueryCustomization |
DocumentQueryCustomization.include(com.mysema.query.types.Path<?> path) |
IDocumentQueryCustomization |
DocumentQueryCustomization.include(String path) |
IDocumentQueryCustomization |
DocumentQueryCustomization.noCaching() |
IDocumentQueryCustomization |
DocumentQueryCustomization.noTracking() |
IDocumentQueryCustomization |
DocumentQueryCustomization.randomOrdering() |
IDocumentQueryCustomization |
DocumentQueryCustomization.randomOrdering(String seed) |
IDocumentQueryCustomization |
DocumentQueryCustomization.relatesToShape(String fieldName,
String shapeWKT,
SpatialOptions.SpatialRelation rel) |
IDocumentQueryCustomization |
DocumentQueryCustomization.setAllowMultipleIndexEntriesForSameDocumentToResultTransformer(boolean value) |
IDocumentQueryCustomization |
DocumentQueryCustomization.setHighlighterTags(String[] preTags,
String[] postTags) |
IDocumentQueryCustomization |
DocumentQueryCustomization.setHighlighterTags(String preTag,
String postTag) |
IDocumentQueryCustomization |
DocumentQueryCustomization.showTimings() |
IDocumentQueryCustomization |
DocumentQueryCustomization.sortByDistance() |
IDocumentQueryCustomization |
DocumentQueryCustomization.sortByDistance(double lat,
double lng) |
IDocumentQueryCustomization |
DocumentQueryCustomization.sortByDistance(double lat,
double lng,
String sortedFieldName) |
IDocumentQueryCustomization |
DocumentQueryCustomization.spatial(String fieldName,
SpatialCriteria criteria) |
IDocumentQueryCustomization |
DocumentQueryCustomization.transformResults(ShardReduceFunction func) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResults() |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResults(long waitTimeout) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOf(Date cutOff) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOf(Date cutOff,
long waitTimeout) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOf(Etag cutOffEtag) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOf(Etag cutOffEtag,
long waitTimeout) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOfLastWrite() |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOfLastWrite(long waitTimeout) |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOfNow() |
IDocumentQueryCustomization |
DocumentQueryCustomization.waitForNonStaleResultsAsOfNow(long waitTimeout) |
IDocumentQueryCustomization |
DocumentQueryCustomization.withinRadiusOf(double radius,
double latitude,
double longitude) |
IDocumentQueryCustomization |
DocumentQueryCustomization.withinRadiusOf(double radius,
double latitude,
double longitude,
SpatialOptions.SpatialUnits radiusUnits) |
IDocumentQueryCustomization |
DocumentQueryCustomization.withinRadiusOf(String fieldName,
double radius,
double latitude,
double longitude) |
IDocumentQueryCustomization |
DocumentQueryCustomization.withinRadiusOf(String fieldName,
double radius,
double latitude,
double longitude,
SpatialOptions.SpatialUnits radiusUnits) |
Modifier and Type | Method and Description |
---|---|
void |
DocumentQueryCustomizationFactory.customize(IDocumentQueryCustomization documentQuery) |
Constructor and Description |
---|
DocumentQueryCustomizationFactory(Set<Action1<IDocumentQueryCustomization>> actions,
Action1<IDocumentQueryCustomization> newAction) |
DocumentQueryCustomizationFactory(Set<Action1<IDocumentQueryCustomization>> actions,
Action1<IDocumentQueryCustomization> newAction) |
Modifier and Type | Method and Description |
---|---|
void |
IDocumentQueryListener.beforeQueryExecuted(IDocumentQueryCustomization queryCustomization)
Allow to customize a query globally
|
Copyright © 2016. All Rights Reserved.