Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.vertexium.sql.SqlTableVertex Maven / Gradle / Ivy
package org.vertexium.sql;
import org.vertexium.*;
import org.vertexium.inmemory.InMemoryGraph;
import org.vertexium.inmemory.InMemoryTableVertex;
import org.vertexium.inmemory.InMemoryVertex;
import org.vertexium.inmemory.mutations.Mutation;
import org.vertexium.sql.collections.Storable;
import java.util.EnumSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class SqlTableVertex extends SqlTableElement {
private static final long serialVersionUID = -4846884637517778537L;
public SqlTableVertex(String id) {
super(id);
}
@Override
public InMemoryVertex createElementInternal(
InMemoryGraph graph,
EnumSet fetchHints,
Long endTime,
Authorizations authorizations
) {
return new InMemoryVertex(graph, getId(), asInMemoryTableElement(), fetchHints, endTime, authorizations);
}
@Override
InMemoryTableVertex asInMemoryTableElement() {
return new InMemoryAdapter(this);
}
private static class InMemoryAdapter extends InMemoryTableVertex
implements Storable, SqlGraph> {
private SqlTableVertex sqlTableVertex;
InMemoryAdapter(SqlTableVertex sqlTableVertex) {
super(sqlTableVertex.getId());
this.sqlTableVertex = sqlTableVertex;
}
@Override
public void setContainer(Map> map, SqlGraph graph) {
sqlTableVertex.setContainer(map, graph);
}
@Override
public void store() {
sqlTableVertex.store();
}
@Override
public String getId() {
return sqlTableVertex.getId();
}
@Override
public void addAll(Mutation... newMutations) {
sqlTableVertex.addAll(newMutations);
}
@Override
public long getFirstTimestamp() {
return sqlTableVertex.getFirstTimestamp();
}
@Override
protected T findLastMutation(Class clazz) {
return sqlTableVertex.findLastMutation(clazz);
}
@Override
protected Iterable findMutations(Class clazz) {
return sqlTableVertex.findMutations(clazz);
}
@Override
public Visibility getVisibility() {
return sqlTableVertex.getVisibility();
}
@Override
public long getTimestamp() {
return sqlTableVertex.getTimestamp();
}
@Override
public Property deleteProperty(String key, String name, Authorizations authorizations) {
return sqlTableVertex.deleteProperty(key, name, authorizations);
}
@Override
public Property getProperty(String key, String name, Visibility visibility, EnumSet fetchHints, Authorizations authorizations) {
return sqlTableVertex.getProperty(key, name, visibility, fetchHints, authorizations);
}
@Override
public Property deleteProperty(String key, String name, Visibility visibility, Authorizations authorizations) {
return sqlTableVertex.deleteProperty(key, name, visibility, authorizations);
}
@Override
protected void deleteProperty(Property p) {
sqlTableVertex.deleteProperty(p);
}
@Override
public Iterable getHistoricalPropertyValues(String key, String name, Visibility visibility, Long startTime, Long endTime, Authorizations authorizations) {
return sqlTableVertex.getHistoricalPropertyValues(key, name, visibility, startTime, endTime, authorizations);
}
@Override
public Iterable getProperties(EnumSet fetchHints, Long endTime, Authorizations authorizations) {
return sqlTableVertex.getProperties(fetchHints, endTime, authorizations);
}
@Override
public void appendSoftDeleteMutation(Long timestamp) {
sqlTableVertex.appendSoftDeleteMutation(timestamp);
}
@Override
public void appendMarkHiddenMutation(Visibility visibility) {
sqlTableVertex.appendMarkHiddenMutation(visibility);
}
@Override
public void appendMarkVisibleMutation(Visibility visibility) {
sqlTableVertex.appendMarkVisibleMutation(visibility);
}
@Override
public Property appendMarkPropertyHiddenMutation(String key, String name, Visibility propertyVisibility, Long timestamp, Visibility visibility, Authorizations authorizations) {
return sqlTableVertex.appendMarkPropertyHiddenMutation(key, name, propertyVisibility, timestamp, visibility, authorizations);
}
@Override
public Property appendMarkPropertyVisibleMutation(String key, String name, Visibility propertyVisibility, Long timestamp, Visibility visibility, Authorizations authorizations) {
return sqlTableVertex.appendMarkPropertyVisibleMutation(key, name, propertyVisibility, timestamp, visibility, authorizations);
}
@Override
public void appendSoftDeletePropertyMutation(String key, String name, Visibility propertyVisibility, Long timestamp) {
sqlTableVertex.appendSoftDeletePropertyMutation(key, name, propertyVisibility, timestamp);
}
@Override
public void appendAlterVisibilityMutation(Visibility newVisibility) {
sqlTableVertex.appendAlterVisibilityMutation(newVisibility);
}
@Override
public void appendAddPropertyValueMutation(String key, String name, Object value, Metadata metadata, Visibility visibility, Long timestamp) {
sqlTableVertex.appendAddPropertyValueMutation(key, name, value, metadata, visibility, timestamp);
}
@Override
public void appendAddPropertyMetadataMutation(String key, String name, Metadata metadata, Visibility visibility, Long timestamp) {
sqlTableVertex.appendAddPropertyMetadataMutation(key, name, metadata, visibility, timestamp);
}
@Override
public void appendAlterEdgeLabelMutation(long timestamp, String newEdgeLabel) {
sqlTableVertex.appendAlterEdgeLabelMutation(timestamp, newEdgeLabel);
}
@Override
protected List getFilteredMutations(boolean includeHidden, Long endTime, Authorizations authorizations) {
return sqlTableVertex.getFilteredMutations(includeHidden, endTime, authorizations);
}
@Override
public boolean canRead(Authorizations authorizations) {
return sqlTableVertex.canRead(authorizations);
}
@Override
public Set getHiddenVisibilities() {
return sqlTableVertex.getHiddenVisibilities();
}
@Override
public boolean isHidden(Authorizations authorizations) {
return sqlTableVertex.isHidden(authorizations);
}
@Override
public InMemoryVertex createElement(InMemoryGraph graph, EnumSet fetchHints, Authorizations authorizations) {
return sqlTableVertex.createElement(graph, fetchHints, authorizations);
}
@Override
public boolean isDeleted(Long endTime, Authorizations authorizations) {
return sqlTableVertex.isDeleted(endTime, authorizations);
}
@Override
public InMemoryVertex createElementInternal(InMemoryGraph graph, EnumSet fetchHints, Long endTime, Authorizations authorizations) {
return sqlTableVertex.createElementInternal(graph, fetchHints, endTime, authorizations);
}
}
}