Module prov.model

Class IndexedDocument

java.lang.Object
org.openprovenance.prov.model.IndexedDocument
All Implemented Interfaces:
StatementAction

public class IndexedDocument extends Object implements StatementAction
This class provides a set of indexes over information contained in an Document, facilitating its navigation. Its constructor takes an Document builds an index for it. Of course, for the index to be maintained, one cannot access, say the list of edges, and mutate it. Instead, one has to use the add methods provided.

Note that code is not thread-safe. TODO: index annotation, index edges