org.aksw.commons.graph
Class TripleIndexUtils

java.lang.Object
  extended by org.aksw.commons.graph.TripleIndexUtils

public class TripleIndexUtils
extends Object


Constructor Summary
TripleIndexUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleIndexUtils

public TripleIndexUtils()
Method Detail

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.