|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.datastore.redis.engine.RedisAssociationIndexer
public class RedisAssociationIndexer
An indexer for Redis
Constructor Summary | |
---|---|
RedisAssociationIndexer(RedisTemplate template,
org.springframework.core.convert.ConversionService typeConverter,
Association association)
|
Method Summary | |
---|---|
PersistentEntity |
getIndexedEntity()
|
void |
index(Long primaryKey,
List<Long> foreignKeys)
Creates an index queryable via the primary key |
void |
index(Long primaryKey,
Long foreignKey)
Index a single foreign key |
List<Long> |
query(Long primaryKey)
Queries the given primary key and returns the foreign keys |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedisAssociationIndexer(RedisTemplate template, org.springframework.core.convert.ConversionService typeConverter, Association association)
Method Detail |
---|
public void index(Long primaryKey, List<Long> foreignKeys)
AssociationIndexer
index
in interface AssociationIndexer<Long,Long>
primaryKey
- The primary keyforeignKeys
- The foreign keyspublic void index(Long primaryKey, Long foreignKey)
AssociationIndexer
index
in interface AssociationIndexer<Long,Long>
primaryKey
- The primaryKeyforeignKey
- The foreignKeypublic List<Long> query(Long primaryKey)
AssociationIndexer
query
in interface AssociationIndexer<Long,Long>
primaryKey
- The primary key
public PersistentEntity getIndexedEntity()
getIndexedEntity
in interface AssociationIndexer<Long,Long>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |