Class SimpleRedisEnhancedRepository<T,ID>
java.lang.Object
org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
com.redis.om.spring.repository.support.SimpleRedisEnhancedRepository<T,ID>
- All Implemented Interfaces:
RedisEnhancedRepository<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.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,ID>
public class SimpleRedisEnhancedRepository<T,ID>
extends org.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
implements RedisEnhancedRepository<T,ID>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityAuditorprotected final RedisEnhancedKeyValueAdapterprotected final FeatureExtractorprotected final RediSearchIndexerprotected final MappingRedisOMConverterprotected final RedisModulesOperations<String>protected final org.springframework.data.keyvalue.core.KeyValueOperations -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRedisEnhancedRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, org.springframework.data.keyvalue.core.KeyValueOperations operations, RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, RedisOMProperties properties) -
Method Summary
Modifier and TypeMethodDescription<S extends T>
longcount(org.springframework.data.domain.Example<S> example) byte[]<S extends T>
booleanexists(org.springframework.data.domain.Example<S> example) findAll()findAll(org.springframework.data.domain.Example<S> example) <S extends T>
org.springframework.data.domain.Page<S>findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Pageable pageable) findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort) org.springframework.data.domain.Page<T>findAll(org.springframework.data.domain.Pageable pageable) findAll(org.springframework.data.domain.Sort sort) <S extends T,R>
RfindBy(org.springframework.data.domain.Example<S> example, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>, R> queryFunction) findOne(org.springframework.data.domain.Example<S> example) 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, findAllById, 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
findAllById
-
Field Details
-
modulesOperations
-
metadata
-
operations
protected final org.springframework.data.keyvalue.core.KeyValueOperations operations -
indexer
-
mappingConverter
-
enhancedKeyValueAdapter
-
auditor
-
featureExtractor
-
-
Constructor Details
-
SimpleRedisEnhancedRepository
public SimpleRedisEnhancedRepository(org.springframework.data.repository.core.EntityInformation<T, ID> metadata, org.springframework.data.keyvalue.core.KeyValueOperations operations, @Qualifier("redisModulesOperations") RedisModulesOperations<?> rmo, RediSearchIndexer indexer, FeatureExtractor featureExtractor, RedisOMProperties properties)
-
-
Method Details
-
getIds
- Specified by:
getIdsin interfaceRedisEnhancedRepository<T,ID>
-
getIds
public org.springframework.data.domain.Page<ID> getIds(org.springframework.data.domain.Pageable pageable) Description copied from interface:RedisEnhancedRepositoryReturns aPageof ids meeting the paging restriction provided in thePageableobject.- Specified by:
getIdsin interfaceRedisEnhancedRepository<T,ID> - Parameters:
pageable- encapsulates pagination information- Returns:
- a page of ids
-
updateField
- Specified by:
updateFieldin interfaceRedisEnhancedRepository<T,ID>
-
getFieldsByIds
- Specified by:
getFieldsByIdsin interfaceRedisEnhancedRepository<T,ID>
-
getExpiration
- Specified by:
getExpirationin interfaceRedisEnhancedRepository<T,ID>
-
findAll
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.ListPagingAndSortingRepository<T,ID> - Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<T,ID> - Overrides:
findAllin classorg.springframework.data.keyvalue.repository.support.SimpleKeyValueRepository<T,ID>
-
findAll
public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable) -
saveAll
-
createKey
-
findOne
- Specified by:
findOnein interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-
findAll
public <S extends T> Iterable<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort) - Specified by:
findAllin interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-
findAll
public <S extends T> org.springframework.data.domain.Page<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-
count
- Specified by:
countin interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-
exists
- Specified by:
existsin interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-
findBy
public <S extends T,R> R findBy(org.springframework.data.domain.Example<S> example, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>, R> queryFunction) - Specified by:
findByin interfaceorg.springframework.data.repository.query.QueryByExampleExecutor<T>
-