Id

case class Id[D](value: String, collection: String) extends Ordered[Id[D]]

Id represents the _key, _id, and _rev for a document

Type parameters:
D

the document type

Value parameters:
collection

the collection name this id belongs to

value

the unique identity

Companion:
object
trait Serializable
trait Product
trait Equals
trait Ordered[Id[D]]
trait Comparable[Id[D]]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def compare(that: Id[D]): Int
Definition Classes
Ordered
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

def <(that: Id[D]): Boolean
Inherited from:
Ordered
def <=(that: Id[D]): Boolean
Inherited from:
Ordered
def >(that: Id[D]): Boolean
Inherited from:
Ordered
def >=(that: Id[D]): Boolean
Inherited from:
Ordered
def compareTo(that: Id[D]): Int
Inherited from:
Ordered
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

lazy val _id: String

Id represents the concatenation of collection name and key.

Id represents the concatenation of collection name and key.

For example: "myusers/3456789"

See also:
lazy val _key: String

Key represents the unique identifier within a collection.

Key represents the unique identifier within a collection.

See also: