Package datomic

Interface Datom


public interface Datom
An immmutable, point-in-time fact: [entity, attribute, value, transaction, added]
  • Method Summary

    Modifier and Type
    Method
    Description
    a()
    This datom's attribute id.
    boolean
    Is this datom added or retracted?
    e()
    This datom's entity id.
    get(int index)
    Positional getter, as if datom is tuple of [e a v tx added]
    tx()
    This datom's transaction id.
    v()
    This datom's value.
  • 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 from Database.history(), this method can be used to distinguish additions from retractions
      Returns:
      a boolean indicating whether this datom was added or retracted
    • get

      Object get(int index)
      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