| Package | Description |
|---|---|
| org.springframework.data.mongodb.core.mapping |
Infrastructure for the MongoDB document-to-object mapping subsystem.
|
| Modifier and Type | Method and Description |
|---|---|
ShardKey |
MongoPersistentEntity.getShardKey()
Get the entities shard key if defined.
|
ShardKey |
BasicMongoPersistentEntity.getShardKey() |
static ShardKey |
ShardKey.hash(String... propertyNames)
Create a new
ShardingStrategy.RANGE shard key. |
static ShardKey |
ShardKey.immutable(ShardKey shardKey)
|
static ShardKey |
ShardKey.none()
ShardKey indicating no shard key has been defined. |
static ShardKey |
ShardKey.range(String... propertyNames)
Create a new
ShardingStrategy.RANGE shard key. |
| Modifier and Type | Method and Description |
|---|---|
static ShardKey |
ShardKey.immutable(ShardKey shardKey)
|
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.