Skip to content

Commit e6f6a91

Browse files
Jay Bryantmp911de
authored andcommitted
DATAKV-323 - Wording changes.
Removed the language of oppression and violence and replaced it with more neutral language. Note that problematic words in the code have to remain in the docs until the code changes. Original pull request: #49.
1 parent 63a2316 commit e6f6a91

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main/asciidoc/key-value-repositories.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public KeyValueAdapter keyValueAdapter() {
6464
[[key-value.keyspaces]]
6565
== Keyspaces
6666

67-
Keyspaces define the part of the data structure in which the entity should be kept. This concept is similar to collections in MongoDB and Elasticsearch, cores in Solr, and tables in JPA.
68-
By default, the keyspace of an entity is extracted from its type, but you can also store entities of different types within one keyspace. In that case, any find operation type-checks the results. The following example shows a keyspace for a repository of `Person` objects:
67+
Keyspaces define the part of the data structure in which the entity should be kept.This concept is similar to collections in MongoDB and Elasticsearch, cores in Solr, and tables in JPA.
68+
By default, the keyspace of an entity is extracted from its type, but you can also store entities of different types within one keyspace.In that case, any find operation type-checks the results.The following example shows a keyspace for a repository of `Person` objects:
6969

7070
====
7171
[source, java]
@@ -125,15 +125,17 @@ class Customer {
125125
[[key-value.template-query]]
126126
== Querying
127127

128-
Query execution is managed by a `QueryEngine`. As mentioned earlier, you can instruct the `KeyValueAdapter` to use an implementation-specific `QueryEngine` that allows access to native functionality.
129-
When used without further customization, queries are be executed by using `SpELQueryEngine`.
128+
Running queries is managed by a `QueryEngine`.
129+
As mentioned earlier, you can instruct the `KeyValueAdapter` to use an implementation-specific `QueryEngine` that allows access to native functionality.
130+
When used without further customization, queries can be run by using `SpELQueryEngine`.
130131

131-
NOTE: For performance reasons, we highly recommend to have at least Spring Framework 4.1.2 or better to make use of link:{spring-framework-docs}core.html#expressions-spel-compilation[compiled SpEL Expressions]. ("`SpEL`" is short for "`Spring Expression Language`".) You can use the `-Dspring.expression.compiler.mode=IMMEDIATE` switch to enable it.
132+
NOTE: For performance reasons, we highly recommend to have at least Spring Framework 4.1.2 or better to make use of link:{spring-framework-docs}core.html#expressions-spel-compilation[compiled SpEL Expressions].
133+
("`SpEL`" is short for "`Spring Expression Language`".) You can use the `-Dspring.expression.compiler.mode=IMMEDIATE` switch to enable it.
132134

133135
The following example shows a query that uses the SpEL:
134136

135137
====
136-
[source, java]
138+
[source,java]
137139
----
138140
KeyValueQuery<String> query = new KeyValueQuery<String>("lastname == 'targaryen'");
139141
List<Person> targaryens = template.find(query, Person.class);
@@ -145,8 +147,8 @@ IMPORTANT: You must have getters and setters present to query properties when yo
145147
[[key-value.template-sort]]
146148
== Sorting
147149

148-
Depending on the store implementation provided by the adapter, entities might already be stored in some sorted way but do not necessarily have to be. Again, the underlying `QueryEngine` is capable of performing sort operations.
149-
When used without further customization, sorting is done by using a `SpelPropertyComparator` extracted from the `Sort` clause. The following example shows a query with a `Sort` clause:
150+
Depending on the store implementation provided by the adapter, entities might already be stored in some sorted way but do not necessarily have to be.Again, the underlying `QueryEngine` is capable of performing sort operations.
151+
When used without further customization, sorting is done by using a `SpelPropertyComparator` extracted from the `Sort` clause.The following example shows a query with a `Sort` clause:
150152

151153
====
152154
[source, java]

0 commit comments

Comments
 (0)