Search in sources :

Example 1 with ExistingEdgeMutation

use of org.vertexium.mutation.ExistingEdgeMutation in project vertexium by visallo.

the class InMemoryEdge method prepareMutation.

@Override
@SuppressWarnings("unchecked")
public ExistingEdgeMutation prepareMutation() {
    return new ExistingEdgeMutation(this) {

        @Override
        public Edge save(Authorizations authorizations) {
            IndexHint indexHint = getIndexHint();
            Visibility oldVisibility = InMemoryEdge.this.getVisibility();
            saveExistingElementMutation(this, indexHint, authorizations);
            Edge edge = getElement();
            if (indexHint != IndexHint.DO_NOT_INDEX) {
                saveMutationToSearchIndex(edge, oldVisibility, getNewElementVisibility(), getAlterPropertyVisibilities(), getExtendedData(), authorizations);
            }
            return edge;
        }
    };
}
Also used : ExistingEdgeMutation(org.vertexium.mutation.ExistingEdgeMutation) IndexHint(org.vertexium.search.IndexHint)

Aggregations

ExistingEdgeMutation (org.vertexium.mutation.ExistingEdgeMutation)1 IndexHint (org.vertexium.search.IndexHint)1