|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.datastore.redis.engine.RedisPropertyValueIndexer
public class RedisPropertyValueIndexer
Indexes property values for querying later
Constructor Summary | |
---|---|
RedisPropertyValueIndexer(MappingContext context,
RedisEntityPersister redisEntityPersister,
PersistentProperty property)
|
Method Summary | |
---|---|
String |
getIndexName(Object value)
|
String |
getIndexPattern(String pattern)
|
void |
index(Object value,
Long primaryKey)
Creates an index for the given value to the specified key |
List<Long> |
query(Object value)
Queries the given value and returns the keys |
List<Long> |
query(Object value,
int offset,
int max)
Queries the given value and returns the keys |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedisPropertyValueIndexer(MappingContext context, RedisEntityPersister redisEntityPersister, PersistentProperty property)
Method Detail |
---|
public void index(Object value, Long primaryKey)
PropertyValueIndexer
index
in interface PropertyValueIndexer<Long>
value
- The valueprimaryKey
- The keypublic List<Long> query(Object value)
PropertyValueIndexer
query
in interface PropertyValueIndexer<Long>
value
- The value to query by
public List<Long> query(Object value, int offset, int max)
PropertyValueIndexer
query
in interface PropertyValueIndexer<Long>
value
- The value to query byoffset
- The offset position to start frommax
- The maximum number of records
public String getIndexName(Object value)
getIndexName
in interface PropertyValueIndexer<Long>
value
- The indexed value
public String getIndexPattern(String pattern)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |