org.vertexium.sql.SqlEdgeTable Maven / Gradle / Ivy
package org.vertexium.sql;
import org.vertexium.inmemory.*;
import org.vertexium.sql.collections.SqlMap;
import org.vertexium.util.ConvertingIterable;
public class SqlEdgeTable extends InMemoryEdgeTable {
public SqlEdgeTable(SqlMap> rows) {
super(rows);
}
@Override
protected InMemoryTableElement createInMemoryTableElement(String id) {
return new SqlTableEdge(id);
}
@Override
public Iterable getAllTableElements() {
return new ConvertingIterable, InMemoryTableEdge>(super.getRowValues()) {
@Override
protected InMemoryTableEdge convert(InMemoryTableElement inMemoryTableElement) {
return ((SqlTableEdge) inMemoryTableElement).asInMemoryTableElement();
}
};
}
}