All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.sql.SqlEdgeTable Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
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();
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy