public interface CountStorage
Stores a cache of counts so that we can know which Types to shard when they have too many
instances.
| Modifier and Type | Method and Description |
|---|---|
long |
getInstanceCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId)
Get the instance count for a specific concept.
|
long |
getShardCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId)
Get the shard count for a specific concept.
|
long |
incrementInstanceCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId,
long incrementBy)
Adjusts the count for a specific concept.
|
long |
incrementShardCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId,
long incrementBy)
Adjusts the shard count for a specific concept.
|
long incrementInstanceCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId,
long incrementBy)
keyspace - conceptId - incrementBy - the number to adjust the key bylong incrementShardCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId,
long incrementBy)
keyspace - conceptId - incrementBy - the number to adjust the key bylong getInstanceCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId)
keyspace - conceptId - long getShardCount(ai.grakn.Keyspace keyspace,
ai.grakn.concept.ConceptId conceptId)
keyspace - conceptId - Copyright © 2018 Grakn Labs Ltd. All rights reserved.