Class DefaultCollectionFactory
java.lang.Object
org.eclipse.rdf4j.collection.factory.impl.DefaultCollectionFactory
- All Implemented Interfaces:
AutoCloseable
,CollectionFactory
A DefaultCollectionFactory that provides lists/sets/maps using standard common java in memory types
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createBindingSetKey
(BindingSet bindingSet, List<Function<BindingSet, Value>> getValues, ToIntFunction<BindingSet> hashOfBindingSetCalculator) <E> Map<BindingSetKey,
E> <T> List<T>
<K,
V> Map<K, V> <T> Queue<T>
<T> Set<T>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.collection.factory.api.CollectionFactory
hashAValue, hashOfBindingSetFuntion
-
Constructor Details
-
DefaultCollectionFactory
public DefaultCollectionFactory()
-
-
Method Details
-
createList
- Specified by:
createList
in interfaceCollectionFactory
- Type Parameters:
T
- of the list- Returns:
- a list that may be optimised and/or disk based
-
createValueList
- Specified by:
createValueList
in interfaceCollectionFactory
- Returns:
- a list that may be optimised and/or disk based for Values only
-
createSet
- Specified by:
createSet
in interfaceCollectionFactory
- Type Parameters:
T
- of the set- Returns:
- a set that may be optimised and/or disk based
-
createValueSet
- Specified by:
createValueSet
in interfaceCollectionFactory
- Returns:
- a set that may be optimised and/or disk based for Values
-
createSetOfBindingSets
- Specified by:
createSetOfBindingSets
in interfaceCollectionFactory
- Returns:
- a set that may be optimised and/or disk based
-
createMap
- Specified by:
createMap
in interfaceCollectionFactory
- Type Parameters:
K
- key typeV
- value type- Returns:
- a map
-
createValueKeyedMap
- Specified by:
createValueKeyedMap
in interfaceCollectionFactory
- Type Parameters:
V
- value type- Returns:
- a map
-
createQueue
- Specified by:
createQueue
in interfaceCollectionFactory
- Type Parameters:
T
- of the contents of the queue- Returns:
- a new queue
-
createValueQueue
- Specified by:
createValueQueue
in interfaceCollectionFactory
- Returns:
- a new queue
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCollectionFactory
- Throws:
RDF4JException
-
createGroupByMap
- Specified by:
createGroupByMap
in interfaceCollectionFactory
-
createBindingSetKey
public BindingSetKey createBindingSetKey(BindingSet bindingSet, List<Function<BindingSet, Value>> getValues, ToIntFunction<BindingSet> hashOfBindingSetCalculator) - Specified by:
createBindingSetKey
in interfaceCollectionFactory
-