org.aksw.commons.graph
Class TripleIndexUtils
java.lang.Object
org.aksw.commons.graph.TripleIndexUtils
public class TripleIndexUtils
- extends Object
|
Method Summary |
static
|
createMap(Integer maxSize)
|
static
|
createSet(Integer maxSize)
|
static List<Object> |
getMatchingKey(Set<List<Object>> keys,
com.hp.hpl.jena.graph.Triple triple,
int[] keyColumns)
|
static
|
getOrCreate(Map<List<T>,IndexTable> map,
List<T> key)
|
static
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TripleIndexUtils
public TripleIndexUtils()
getMatchingKey
public static List<Object> getMatchingKey(Set<List<Object>> keys,
com.hp.hpl.jena.graph.Triple triple,
int[] keyColumns)
getOrCreate2
public static <T> Set<List<Object>> getOrCreate2(Map<List<T>,Set<List<Object>>> map,
List<T> key)
getOrCreate
public static <T> IndexTable getOrCreate(Map<List<T>,IndexTable> map,
List<T> key)
tripleToList
public static List<Object> tripleToList(com.hp.hpl.jena.graph.Triple triple,
int[] indexes)
index2
public static Map<List<Object>,Set<List<Object>>> index2(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns)
index2
public static Map<List<Object>,Set<List<Object>>> index2(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns,
int[] valueColumns)
index
public static Map<List<Object>,IndexTable> index(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns)
index
public static Map<List<Object>,IndexTable> index(Collection<com.hp.hpl.jena.graph.Triple> triples,
int[] keyColumns,
int[] valueColumns)
getValueColumns
public static int[] getValueColumns(int[] keyColumns)
toKeys
public static Set<List<Object>> toKeys(List<com.hp.hpl.jena.rdf.model.Resource> resources)
createMap
public static <K,V> Map<K,V> createMap(Integer maxSize)
createSet
public static <T> Set<T> createSet(Integer maxSize)
Copyright © 2012. All Rights Reserved.