public class RdfPersistenceContextImpl extends Object implements RdfPersistenceContext
| Modifier and Type | Field and Description |
|---|---|
protected EntityGraphMap<EntityId> |
entityGraphMap |
protected Map<Object,org.apache.jena.graph.Node> |
entityToPrimaryNode |
protected org.aksw.commons.collections.reversible.ReversibleMap<EntityId,Object> |
idToEntity |
protected Set<Object> |
managedEntities |
protected Map<org.apache.jena.graph.Node,com.google.common.collect.ClassToInstanceMap<Object>> |
nodeToTypeToEntity |
protected List<ResolutionRequest> |
resolutionRequests |
protected RdfTypeFactory |
typeFactory |
| Constructor and Description |
|---|
RdfPersistenceContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
entityFor(Class<?> clazz,
org.apache.jena.graph.Node node,
java.util.function.Supplier<Object> newInstance) |
EntityGraphMap<EntityId> |
getEntityGraphMap() |
Map<Object,EntityId> |
getEntityToIdMap() |
org.aksw.commons.collections.reversible.ReversibleMap<EntityId,Object> |
getIdToEntityMap() |
Set<Object> |
getManagedEntities()
An identity Hashset of managed entities
|
Map<Object,org.apache.jena.graph.Node> |
getPrimaryNodeMap() |
List<ResolutionRequest> |
getResolutionRequests() |
void |
requestResolution(PropertyOps propertyOps,
Object entity,
org.apache.jena.graph.Node node) |
protected RdfTypeFactory typeFactory
protected Map<org.apache.jena.graph.Node,com.google.common.collect.ClassToInstanceMap<Object>> nodeToTypeToEntity
protected List<ResolutionRequest> resolutionRequests
protected org.aksw.commons.collections.reversible.ReversibleMap<EntityId,Object> idToEntity
protected EntityGraphMap<EntityId> entityGraphMap
public Map<Object,org.apache.jena.graph.Node> getPrimaryNodeMap()
getPrimaryNodeMap in interface RdfPersistenceContextpublic List<ResolutionRequest> getResolutionRequests()
getResolutionRequests in interface RdfPersistenceContextpublic Set<Object> getManagedEntities()
RdfPersistenceContextgetManagedEntities in interface RdfPersistenceContextpublic void requestResolution(PropertyOps propertyOps, Object entity, org.apache.jena.graph.Node node)
requestResolution in interface RdfPersistenceContextpublic Object entityFor(Class<?> clazz, org.apache.jena.graph.Node node, java.util.function.Supplier<Object> newInstance)
entityFor in interface RdfPersistenceContextpublic EntityGraphMap<EntityId> getEntityGraphMap()
getEntityGraphMap in interface RdfPersistenceContextpublic org.aksw.commons.collections.reversible.ReversibleMap<EntityId,Object> getIdToEntityMap()
getIdToEntityMap in interface RdfPersistenceContextpublic Map<Object,EntityId> getEntityToIdMap()
getEntityToIdMap in interface RdfPersistenceContextCopyright © 2017. All rights reserved.