public class TripleIndexUtils extends Object
| Constructor and Description |
|---|
TripleIndexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
createMap(Integer maxSize) |
static <T> Set<T> |
createSet(Integer maxSize) |
static List<Object> |
getMatchingKey(Set<List<Object>> keys,
com.hp.hpl.jena.graph.Triple triple,
int[] keyColumns) |
static <T> IndexTable |
getOrCreate(Map<List<T>,IndexTable> map,
List<T> key) |
static <T> Set<List<Object>> |
getOrCreate2(Map<List<T>,Set<List<Object>>> map,
List<T> key) |
static int[] |
getValueColumns(int[] keyColumns) |
static Map<List<Object>,IndexTable> |
index(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns) |
static Map<List<Object>,IndexTable> |
index(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns,
int[] valueColumns) |
static Map<List<Object>,Set<List<Object>>> |
index2(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns) |
static Map<List<Object>,Set<List<Object>>> |
index2(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns,
int[] valueColumns) |
static Set<List<Object>> |
toKeys(List<com.hp.hpl.jena.rdf.model.Resource> resources) |
static List<Object> |
tripleToList(com.hp.hpl.jena.graph.Triple triple,
int[] indexes) |
public static List<Object> getMatchingKey(Set<List<Object>> keys, com.hp.hpl.jena.graph.Triple triple, int[] keyColumns)
public static <T> Set<List<Object>> getOrCreate2(Map<List<T>,Set<List<Object>>> map, List<T> key)
public static <T> IndexTable getOrCreate(Map<List<T>,IndexTable> map, List<T> key)
public static List<Object> tripleToList(com.hp.hpl.jena.graph.Triple triple, int[] indexes)
public static Map<List<Object>,Set<List<Object>>> index2(Collection<com.hp.hpl.jena.graph.Triple> triples, int[] keyColumns)
public static Map<List<Object>,Set<List<Object>>> index2(Collection<com.hp.hpl.jena.graph.Triple> triples, int[] keyColumns, int[] valueColumns)
public static Map<List<Object>,IndexTable> index(Collection<com.hp.hpl.jena.graph.Triple> triples, int[] keyColumns)
public static Map<List<Object>,IndexTable> index(Collection<com.hp.hpl.jena.graph.Triple> triples, int[] keyColumns, int[] valueColumns)
public static int[] getValueColumns(int[] keyColumns)
Copyright © 2013. All Rights Reserved.