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

org.aksw.sparqlify.database.PatriciaAccessorFactory Maven / Gradle / Ivy

The newest version!
package org.aksw.sparqlify.database;

import java.util.List;
import java.util.Set;
import java.util.function.Function;

public class PatriciaAccessorFactory
    implements MetaIndexFactory
{
    private Function> prefixExtractor;


    public PatriciaAccessorFactory(Function> prefixExtractor) {
        this.prefixExtractor = prefixExtractor;
    }


    @Override
    public MapStoreAccessor create(Table table, List columnNames) {

        int[] indexColumns = new int[columnNames.size()];

        for(int i = 0; i < indexColumns.length; ++i) {
            String columnName = columnNames.get(i);
            indexColumns[i] = table.getColumns().getIndex(columnName);
        }

        MapStoreAccessor accessor = null;
        if(true) {
            throw new RuntimeException("PatriciaTree support disabled");
        //PatriciaPrefixMapStoreAccessor accessor = new PatriciaPrefixMapStoreAccessor(indexColumns, prefixExtractor);
        }

        return accessor;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy