public List<Mapping> getMappings(Literal selectLiteral) {
        List<Mapping> result = new ArrayList<>();
        //for(Literal literal: view.literals){
        int[] positions = viewPositions.get(selectLiteral.id);
        if(positions==null)
            return result;
        for (int i = positions[0]; i < positions[1]; i++) {


            //if(literal.id==selectLiteral.id) {
            Mapping currentMapping;
            try {
                currentMapping = new Mapping(selectLiteral, view.literals[i]);
            } catch (Exception e) {
                continue;
            }
            result.add(currentMapping);
            // }
        }
        return result;
    }