Search

dev.mongocamp.driver.mongodb.operation.Search
abstract class Search[A]()(implicit ct: ClassTag[A], decoder: Decoder[A]) extends Base[A]

Attributes

Graph
Supertypes
class Base[A]
trait LazyLogging
class Object
trait Matchable
class Any
Known subtypes
class Crud[A]
trait CrudObserver[A]
class MongoDAO[A]
object Raw
class DocumentDao
object Chunks
object Files
Show all

Members list

Value members

Abstract methods

protected def coll: MongoCollection[Document]

Concrete methods

def distinct[S](fieldName: String, filter: Bson): DistinctObservable[BsonValue]
def distinctResult[S](fieldName: String, filter: Bson): Seq[S]
def find(filter: Bson, sort: Bson, projection: Bson, limit: Int, skip: Int): Observable[A]
def find(name: String, value: Any): Observable[A]
def findAggregated(pipeline: Seq[Bson], allowDiskUse: Boolean): Observable[A]
def findById(oid: ObjectId): Observable[A]

Inherited methods

def count(filter: Bson, options: CountOptions): Observable[Long]

Attributes

Inherited from:
Base
def createExpiringIndexForField(fieldName: String, duration: Duration, sortAscending: Boolean, name: Option[String]): SingleObservable[String]

Attributes

Inherited from:
Base
def createHashedIndexForField(fieldName: String, options: IndexOptions): SingleObservable[String]

Attributes

Inherited from:
Base
def createIndex(key: Bson, options: IndexOptions): SingleObservable[String]

Attributes

Inherited from:
Base
def createIndexForField(fieldName: String, sortAscending: Boolean, options: IndexOptions): SingleObservable[String]

Attributes

Inherited from:
Base
def createIndexForFieldWithName(fieldName: String, sortAscending: Boolean, name: String): SingleObservable[String]

Attributes

Inherited from:
Base
def createTextIndexForField(fieldName: String, options: IndexOptions): SingleObservable[String]

Attributes

Inherited from:
Base
def createUniqueIndexForField(fieldName: String, sortAscending: Boolean, name: Option[String]): SingleObservable[String]

Attributes

Inherited from:
Base
def documentToObject[A](document: Document, decoder: Decoder[A]): A

Attributes

Inherited from:
Base
def drop(): Observable[Unit]

Attributes

Inherited from:
Base
def dropIndex(keys: Bson, options: DropIndexOptions): SingleObservable[Unit]

Attributes

Inherited from:
Base
def dropIndexForName(name: String, options: DropIndexOptions): SingleObservable[Unit]

Attributes

Inherited from:
Base
def hasIndexForField(fieldName: String): Boolean

Attributes

Inherited from:
Base
def indexForName(name: String): Option[MongoIndex]

Attributes

Inherited from:
Base
def indexList(): List[MongoIndex]

Attributes

Inherited from:
Base
def listIndexes: ListIndexesObservable[Map[String, Any]]

Attributes

Inherited from:
Base

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
LazyLogging