Package datomic
Interface Datom
public interface Datom
An immmutable, point-in-time fact:
[entity, attribute, value, transaction, added]
-
Method Details
-
e
Object e()This datom's entity id.- Returns:
- entity id
-
a
Object a()This datom's attribute id.- Returns:
- attribute id
-
v
Object v()This datom's value.- Returns:
- value
-
tx
Object tx()This datom's transaction id.- Returns:
- transaction id
-
added
boolean added()Is this datom added or retracted?
When datoms come fromDatabase.history()
, this method can be used to distinguish additions from retractions- Returns:
- a boolean indicating whether this datom was added or retracted
-
get
Positional getter, as if datom is tuple of[e a v tx added]
- Parameters:
index
- numeric index in the range [0,4]- Returns:
- the value at this position in the datom
-