org.vertexium.elasticsearch5.ElasticsearchElement Maven / Gradle / Ivy
package org.vertexium.elasticsearch5;
import com.google.common.collect.ImmutableSet;
import org.vertexium.*;
import org.vertexium.historicalEvent.HistoricalEvent;
import org.vertexium.historicalEvent.HistoricalEventId;
import org.vertexium.mutation.ExistingElementMutation;
import org.vertexium.query.QueryableIterable;
import java.util.stream.Stream;
public abstract class ElasticsearchElement extends ElementBase {
private final Graph graph;
private FetchHints fetchHints;
private String id;
private Authorizations authorizations;
public ElasticsearchElement(
Graph graph,
String id,
FetchHints fetchHints,
Authorizations authorizations
) {
this.id = id;
this.graph = graph;
this.fetchHints = fetchHints;
this.authorizations = authorizations;
}
@Override
public String getId() {
return id;
}
@Override
public Iterable getProperties() {
throw new VertexiumNotSupportedException("getProperties is not supported");
}
@Override
public Property getProperty(String name) {
throw new VertexiumNotSupportedException("getProperty is not supported");
}
@Override
public Object getPropertyValue(String name) {
throw new VertexiumNotSupportedException("getPropertyValue is not supported");
}
@Override
public Property getProperty(String key, String name) {
throw new VertexiumNotSupportedException("getProperty is not supported");
}
@Override
public Iterable