Search in sources :

Example 1 with ChangeType

use of nl.knaw.huygens.timbuctoo.v5.datastores.quadstore.dto.ChangeType in project timbuctoo by HuygensING.

the class BdbTruePatchStore method makeCursorQuad.

public CursorQuad makeCursorQuad(String subject, boolean assertions, String value) {
    String[] parts = value.split("\n", 5);
    Direction direction = parts[1].charAt(0) == '1' ? OUT : IN;
    ChangeType changeType = assertions ? ChangeType.ASSERTED : ChangeType.RETRACTED;
    return CursorQuad.create(subject, parts[0], direction, changeType, parts[4], parts[2].isEmpty() ? null : parts[2], parts[3].isEmpty() ? null : parts[3], "");
}
Also used : ChangeType(nl.knaw.huygens.timbuctoo.v5.datastores.quadstore.dto.ChangeType) Direction(nl.knaw.huygens.timbuctoo.v5.datastores.quadstore.dto.Direction)

Aggregations

ChangeType (nl.knaw.huygens.timbuctoo.v5.datastores.quadstore.dto.ChangeType)1 Direction (nl.knaw.huygens.timbuctoo.v5.datastores.quadstore.dto.Direction)1