public class BlazeGraphEdit extends Object
BlazeGraphAtom
), and the commit time of
the edit. This is the unit of graph information used by the listener and
history APIs. Listeners will get edits with no timestamp information, that
is because the edits are happening prior to a commit. Listeners will
eventually get a commit notification with a timestamp (or a rollback).
The history API will provide timestamps, since it is dealing with committed
edits that happened in the past.Modifier and Type | Class and Description |
---|---|
static class |
BlazeGraphEdit.Action
Edit action - add or remove.
|
Constructor and Description |
---|
BlazeGraphEdit(BlazeGraphEdit.Action action,
BlazeGraphAtom atom)
Construct an edit with an unknown commit time (listener API).
|
BlazeGraphEdit(BlazeGraphEdit.Action action,
BlazeGraphAtom atom,
long timestamp)
Construct an edit with an known commit time (history API).
|
Modifier and Type | Method and Description |
---|---|
BlazeGraphEdit.Action |
getAction()
Return the edit action.
|
BlazeGraphAtom |
getAtom()
Return the atomic unit of graph information edited.
|
long |
getTimestamp()
Return the commit time of the edit action or 0l if this is an
uncommitted edit.
|
String |
toString() |
public BlazeGraphEdit(BlazeGraphEdit.Action action, BlazeGraphAtom atom)
public BlazeGraphEdit(BlazeGraphEdit.Action action, BlazeGraphAtom atom, long timestamp)
public BlazeGraphEdit.Action getAction()
public BlazeGraphAtom getAtom()
public long getTimestamp()
Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.