public interface ConceptCache
| Modifier and Type | Method and Description |
|---|---|
void |
addJobCasting(String keyspace,
String castingIndex,
ConceptId castingId) |
void |
addJobInstanceCount(String keyspace,
TypeLabel name,
long instanceCount) |
void |
addJobResource(String keyspace,
String resourceIndex,
ConceptId resourceId) |
void |
clearAllJobs(String keyspace)
Removes all jobs from the keyspace
|
void |
clearJobSetCastings(String keyspace,
String conceptIndex)
Deletes the job set only if there are no pending jobs
|
void |
clearJobSetResources(String keyspace,
String conceptIndex)
Deletes the job set only if there are no pending jobs
|
void |
deleteJobCasting(String keyspace,
String castingIndex,
ConceptId castingId) |
void |
deleteJobInstanceCount(String keyspace,
TypeLabel name) |
void |
deleteJobResource(String keyspace,
String resourceIndex,
ConceptId resourceId) |
Map<String,Set<ConceptId>> |
getCastingJobs(String keyspace) |
Map<TypeLabel,Long> |
getInstanceCountJobs(String keyspace) |
Set<String> |
getKeyspaces() |
long |
getLastTimeJobAdded() |
long |
getNumCastingJobs(String keyspace) |
long |
getNumJobs(String keyspace) |
long |
getNumResourceJobs(String keyspace) |
Map<String,Set<ConceptId>> |
getResourceJobs(String keyspace) |
Set<String> getKeyspaces()
long getNumJobs(String keyspace)
keyspace - The keyspace of a specific graph.void clearAllJobs(String keyspace)
keyspace - The keyspace to purge of all jobslong getLastTimeJobAdded()
Map<TypeLabel,Long> getInstanceCountJobs(String keyspace)
keyspace - The keyspace of a specific graph.void addJobInstanceCount(String keyspace, TypeLabel name, long instanceCount)
keyspace - The keyspace of the conceptsname - The name of the type with new or removed instancesinstanceCount - The number of new or removed instancesvoid deleteJobInstanceCount(String keyspace, TypeLabel name)
keyspace - The keyspace of the conceptsname - The name of the type with new or removed instancesMap<String,Set<ConceptId>> getCastingJobs(String keyspace)
keyspace - The keyspace of a specific graph.void addJobCasting(String keyspace, String castingIndex, ConceptId castingId)
keyspace - The keyspace of the conceptscastingIndex - The unique index value which should be enforced.castingId - The casting ID which needs post processingvoid deleteJobCasting(String keyspace, String castingIndex, ConceptId castingId)
keyspace - The keyspace of the conceptscastingIndex - The unique index value which should be enforced.castingId - The casting Id which no longer needs post processing.long getNumCastingJobs(String keyspace)
keyspace - The keyspace of a specific graph.void clearJobSetCastings(String keyspace, String conceptIndex)
keyspace - The keyspace of the conceptsconceptIndex - The unique index value has been enforced.Map<String,Set<ConceptId>> getResourceJobs(String keyspace)
keyspace - The keyspace of a specific graph.void addJobResource(String keyspace, String resourceIndex, ConceptId resourceId)
keyspace - The keyspace of the conceptsresourceIndex - The unique index value which should be enforced.resourceId - The resource Id which needs post processingvoid deleteJobResource(String keyspace, String resourceIndex, ConceptId resourceId)
keyspace - The keyspace of the conceptsresourceIndex - The unique index value which should be enforced.resourceId - The resourceId which no longer needs post prcoessinglong getNumResourceJobs(String keyspace)
keyspace - The keyspace of a specific graph.Copyright © 2017 Grakn Labs Ltd. All rights reserved.