Class SimpleRedisDocumentRepository<T,ID>
java.lang.Object
org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
com.redis.om.spring.repository.support.SimpleRedisDocumentRepository<T,ID>
- All Implemented Interfaces:
RedisDocumentRepository<T,,ID> org.springframework.data.keyvalue.repository.KeyValueRepository<T,,ID> org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.repository.ListCrudRepository<T,,ID> org.springframework.data.repository.ListPagingAndSortingRepository<T,,ID> org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.Repository<T,ID>
public class SimpleRedisDocumentRepository<T,ID>
extends org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
implements RedisDocumentRepository<T,ID>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RediSearchIndexerprotected final MappingRedisOMConverterprotected final RedisModulesOperations<String>protected final org.springframework.data.keyvalue.core.KeyValueOperations -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRedisDocumentRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, org.springframework.data.keyvalue.core.KeyValueOperations operations, RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]voiddeleteById(ID id, redis.clients.jedis.json.Path path) findAllById(Iterable<ID> ids) getExpiration(ID id) <F> Iterable<F>getFieldsByIds(Iterable<ID> ids, MetamodelField<T, F> field) getIds()org.springframework.data.domain.Page<ID>getIds(org.springframework.data.domain.Pageable pageable) Returns aPageof ids meeting the paging restriction provided in thePageableobject.voidupdateField(T entity, MetamodelField<T, ?> field, Object value) Methods inherited from class org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAll, findAll, findById, saveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
-
Field Details
-
modulesOperations
-
metadata
-
operations
protected final org.springframework.data.keyvalue.core.KeyValueOperations operations -
indexer
-
mappingConverter
-
-
Constructor Details
-
SimpleRedisDocumentRepository
public SimpleRedisDocumentRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, org.springframework.data.keyvalue.core.KeyValueOperations operations, @Qualifier("redisModulesOperations") RedisModulesOperations<?> rmo, RediSearchIndexer keyspaceToIndexMap, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext, com.google.gson.Gson gson)
-
-
Method Details
-
getIds
- Specified by:
getIdsin interfaceRedisDocumentRepository<T,ID>
-
getIds
public org.springframework.data.domain.Page<ID> getIds(org.springframework.data.domain.Pageable pageable) Description copied from interface:RedisDocumentRepositoryReturns aPageof ids meeting the paging restriction provided in thePageableobject.- Specified by:
getIdsin interfaceRedisDocumentRepository<T,ID> - Parameters:
pageable- encapsulates pagination information- Returns:
- a page of ids
-
deleteById
- Specified by:
deleteByIdin interfaceRedisDocumentRepository<T,ID>
-
updateField
- Specified by:
updateFieldin interfaceRedisDocumentRepository<T,ID>
-
getFieldsByIds
- Specified by:
getFieldsByIdsin interfaceRedisDocumentRepository<T,ID>
-
getExpiration
- Specified by:
getExpirationin interfaceRedisDocumentRepository<T,ID>
-
saveAll
-
bulkLoad
- Specified by:
bulkLoadin interfaceRedisDocumentRepository<T,ID> - Throws:
IOException
-
findAllById
- Specified by:
findAllByIdin interfaceorg.springframework.data.repository.CrudRepository<T,ID> - Specified by:
findAllByIdin interfaceorg.springframework.data.repository.ListCrudRepository<T,ID> - Overrides:
findAllByIdin classorg.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
-
createKey
-