public class RedisHashDialect extends AbstractRedisDialect implements org.hibernate.ogm.dialect.batch.spi.GroupingByEntityDialect
Tuples are stored in Redis within hashes. Associations are stored in Redis obtained as either single values or a
JSON serialization of a Association object in list/set data structures.
ASSOCIATIONS, clusterMode, connection, IDENTIFIERS, strategy| Constructor and Description |
|---|
RedisHashDialect(RedisDatastoreProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addKeyValuesFromKeyName(org.hibernate.ogm.model.key.spi.EntityKeyMetadata entityKeyMetadata,
String prefix,
String key,
Map<String,String> document) |
org.hibernate.ogm.model.spi.Association |
createAssociation(org.hibernate.ogm.model.key.spi.AssociationKey key,
org.hibernate.ogm.dialect.spi.AssociationContext associationContext) |
org.hibernate.ogm.model.spi.Tuple |
createTuple(org.hibernate.ogm.model.key.spi.EntityKey key,
org.hibernate.ogm.dialect.spi.OperationContext operationContext) |
void |
executeGroupedChangesToEntity(org.hibernate.ogm.dialect.batch.spi.GroupedChangesToEntityOperation groupedOperation) |
void |
forEachTuple(org.hibernate.ogm.dialect.spi.ModelConsumer consumer,
org.hibernate.ogm.dialect.spi.TupleTypeContext tupleTypeContext,
org.hibernate.ogm.model.key.spi.EntityKeyMetadata entityKeyMetadata) |
org.hibernate.ogm.model.spi.Association |
getAssociation(org.hibernate.ogm.model.key.spi.AssociationKey key,
org.hibernate.ogm.dialect.spi.AssociationContext associationContext) |
org.hibernate.ogm.model.spi.Tuple |
getTuple(org.hibernate.ogm.model.key.spi.EntityKey key,
org.hibernate.ogm.dialect.spi.OperationContext operationContext) |
boolean |
isStoredInEntityStructure(org.hibernate.ogm.model.key.spi.AssociationKeyMetadata keyMetadata,
org.hibernate.ogm.dialect.spi.AssociationTypeContext associationTypeContext) |
org.hibernate.ogm.type.spi.GridType |
overrideType(org.hibernate.type.Type type) |
addIdToEntity, addKeyValuesFromKeyName, associationId, entityId, getAssociation, getAssociationRow, getEmbeddingEntityTuplePointer, getKeyWithoutTablePrefix, getObjectTTL, identifierId, isClusterMode, keyStringToMap, keyToMap, nextValue, remove, removeAssociations, removeTuple, scan, setObjectTTL, storeAssociation, supportsSequencesexecuteBatch, flushPendingOperations, insertOrUpdateAssociation, insertOrUpdateTuple, removeAssociationgetDuplicateInsertPreventionStrategy, getLockingStrategy, isInTheInsertionQueue, usesNavigationalInformationForInverseSideOfAssociationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic RedisHashDialect(RedisDatastoreProvider provider)
public org.hibernate.ogm.type.spi.GridType overrideType(org.hibernate.type.Type type)
overrideType in interface org.hibernate.ogm.dialect.spi.GridDialectoverrideType in class org.hibernate.ogm.dialect.spi.BaseGridDialectpublic org.hibernate.ogm.model.spi.Tuple getTuple(org.hibernate.ogm.model.key.spi.EntityKey key,
org.hibernate.ogm.dialect.spi.OperationContext operationContext)
getTuple in interface org.hibernate.ogm.dialect.spi.GridDialectpublic org.hibernate.ogm.model.spi.Tuple createTuple(org.hibernate.ogm.model.key.spi.EntityKey key,
org.hibernate.ogm.dialect.spi.OperationContext operationContext)
createTuple in interface org.hibernate.ogm.dialect.spi.GridDialectpublic org.hibernate.ogm.model.spi.Association getAssociation(org.hibernate.ogm.model.key.spi.AssociationKey key,
org.hibernate.ogm.dialect.spi.AssociationContext associationContext)
getAssociation in interface org.hibernate.ogm.dialect.spi.GridDialectpublic org.hibernate.ogm.model.spi.Association createAssociation(org.hibernate.ogm.model.key.spi.AssociationKey key,
org.hibernate.ogm.dialect.spi.AssociationContext associationContext)
createAssociation in interface org.hibernate.ogm.dialect.spi.GridDialectpublic boolean isStoredInEntityStructure(org.hibernate.ogm.model.key.spi.AssociationKeyMetadata keyMetadata,
org.hibernate.ogm.dialect.spi.AssociationTypeContext associationTypeContext)
isStoredInEntityStructure in interface org.hibernate.ogm.dialect.spi.GridDialectpublic void forEachTuple(org.hibernate.ogm.dialect.spi.ModelConsumer consumer,
org.hibernate.ogm.dialect.spi.TupleTypeContext tupleTypeContext,
org.hibernate.ogm.model.key.spi.EntityKeyMetadata entityKeyMetadata)
forEachTuple in interface org.hibernate.ogm.dialect.spi.GridDialectprotected void addKeyValuesFromKeyName(org.hibernate.ogm.model.key.spi.EntityKeyMetadata entityKeyMetadata,
String prefix,
String key,
Map<String,String> document)
public void executeGroupedChangesToEntity(org.hibernate.ogm.dialect.batch.spi.GroupedChangesToEntityOperation groupedOperation)
executeGroupedChangesToEntity in class org.hibernate.ogm.dialect.impl.AbstractGroupingByEntityDialectCopyright © 2010–2017 Hibernate. All rights reserved.