net.fehmicansaglam.tepkin.protocol.command

Count

Related Doc: package command

case class Count(databaseName: String, collectionName: String, query: Option[BsonDocument] = None, limit: Option[Int] = None, skip: Option[Int] = None, hint: Option[BsonValue] = None) extends Command with Product with Serializable

Counts the number of documents in a collection.

collectionName

The name of the collection to count.

query

Optional. A query that selects which documents to count in a collection.

limit

Optional. The maximum number of matching documents to return.

skip

Optional. The number of matching documents to skip before returning results.

hint

Optional. The index to use. Specify either the index name as a string or the index specification document.

Linear Supertypes
Serializable, Serializable, Product, Equals, Command, Message, Writable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Count
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Command
  7. Message
  8. Writable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Count(databaseName: String, collectionName: String, query: Option[BsonDocument] = None, limit: Option[Int] = None, skip: Option[Int] = None, hint: Option[BsonValue] = None)

    collectionName

    The name of the collection to count.

    query

    Optional. A query that selects which documents to count in a collection.

    limit

    Optional. The maximum number of matching documents to return.

    skip

    Optional. The number of matching documents to skip before returning results.

    hint

    Optional. The index to use. Specify either the index name as a string or the index specification document.

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. implicit val byteOrder: ByteOrder

    Definition Classes
    Message
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val collectionName: String

    The name of the collection to count.

  8. val command: BsonDocument

    Definition Classes
    CountCommand
  9. val databaseName: String

    Definition Classes
    CountCommand
  10. def encode: ByteString

    Definition Classes
    Message → Writable
  11. def encodeBody: ByteString

    Definition Classes
    CommandMessage
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. val hint: Option[BsonValue]

    Optional.

    Optional. The index to use. Specify either the index name as a string or the index specification document.

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val limit: Option[Int]

    Optional.

    Optional. The maximum number of matching documents to return.

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. val opCode: Int

    Definition Classes
    CommandMessage
  22. def putCString(builder: ByteStringBuilder, value: String): ByteStringBuilder

    Definition Classes
    Writable
  23. val query: Option[BsonDocument]

    Optional.

    Optional. A query that selects which documents to count in a collection.

  24. val requestID: Int

    Definition Classes
    Message
  25. val responseTo: Int

    Definition Classes
    CommandMessage
  26. val skip: Option[Int]

    Optional.

    Optional. The number of matching documents to skip before returning results.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Command

Inherited from Message

Inherited from Writable

Inherited from AnyRef

Inherited from Any

Ungrouped