text command was deprecated in the 2.6
version of MongoDB. Use the $text query operator instead. This class will not be removed
until two releases after the MongoDB 2.6 release (e.g. 2.10 if
the releases are 2.8 and 2.10).@Deprecated public class TextCallback extends Object implements Callback<MongoIterator<Document>>
text command's result document to
a TextResult.| Constructor and Description |
|---|
TextCallback(Callback<MongoIterator<TextResult>> delegate)
Deprecated.
Support for the
text command was deprecated in the
2.6 version of MongoDB. Use the
$text query operator
instead. This class will not be removed until two releases
after the MongoDB 2.6 release (e.g. 2.10 if the releases are
2.8 and 2.10). |
| Modifier and Type | Method and Description |
|---|---|
void |
callback(MongoIterator<Document> result)
Deprecated.
Support for the
text command was deprecated in the
2.6 version of MongoDB. Use the
$text query operator
instead. This class will not be removed until two releases
after the MongoDB 2.6 release (e.g. 2.10 if the releases are
2.8 and 2.10). |
void |
exception(Throwable thrown)
Deprecated.
Support for the
text command was deprecated in the
2.6 version of MongoDB. Use the
$text query operator
instead. This class will not be removed until two releases
after the MongoDB 2.6 release (e.g. 2.10 if the releases are
2.8 and 2.10). |
@Deprecated public TextCallback(Callback<MongoIterator<TextResult>> delegate)
text command was deprecated in the
2.6 version of MongoDB. Use the
$text query operator
instead. This class will not be removed until two releases
after the MongoDB 2.6 release (e.g. 2.10 if the releases are
2.8 and 2.10).delegate - The delegate callback to receive the
TextResults.@Deprecated public void callback(MongoIterator<Document> result)
text command was deprecated in the
2.6 version of MongoDB. Use the
$text query operator
instead. This class will not be removed until two releases
after the MongoDB 2.6 release (e.g. 2.10 if the releases are
2.8 and 2.10).
Overridden to convert each document into a
TextResult and forward to the
delegate.
callback in interface Callback<MongoIterator<Document>>result - The result of the operation.@Deprecated public void exception(Throwable thrown)
text command was deprecated in the
2.6 version of MongoDB. Use the
$text query operator
instead. This class will not be removed until two releases
after the MongoDB 2.6 release (e.g. 2.10 if the releases are
2.8 and 2.10).Overridden to forward to the delegate callback.
exception in interface Callback<MongoIterator<Document>>thrown - The thrown exception.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.