Skip to content

Commit

Permalink
update dependencies and version number
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr committed May 29, 2024
1 parent 19692d2 commit 8df3a32
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 18 deletions.
2 changes: 2 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Data Aerospike - Projections]
[width="100%",cols="<24%,<14%,<18%,<26%,<18%",options="header",]
|===
|Spring Data Aerospike |Spring Boot |Aerospike Client |Aerospike Reactor Client |Aerospike Server
|4.8.x |3.3.x |7.2.x |7.1.x |5.2.x.x +
|4.7.x |3.2.x |7.2.x |7.1.x |5.2.x.x +
|4.6.x |3.2.x |7.2.x |7.1.x |5.2.x.x +
Expand Down
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.aerospike</groupId>
<artifactId>spring-data-aerospike</artifactId>
<version>4.7.1</version>
<version>4.8.0</version>
<name>Spring Data Aerospike</name>
<organization>
<name>Aerospike Inc.</name>
Expand All @@ -16,31 +16,31 @@
<parent>
<groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId>
<version>3.2.4</version>
<version>3.3.0</version>
</parent>

<properties>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<springdata.commons>3.2.4</springdata.commons>
<springdata.keyvalue>3.2.4</springdata.keyvalue>
<springdata.spring-boot>3.2.3</springdata.spring-boot>
<spring-boot-starter-test>3.2.3</spring-boot-starter-test>
<springdata.commons>3.3.0</springdata.commons>
<springdata.keyvalue>3.3.0</springdata.keyvalue>
<springdata.spring-boot>3.3.0</springdata.spring-boot>
<spring-boot-starter-test>3.3.0</spring-boot-starter-test>
<spring-cloud-starter-bootstrap>4.1.1</spring-cloud-starter-bootstrap>
<maven.javadoc.plugin>3.3.0</maven.javadoc.plugin>
<maven.gpg.plugin>1.6</maven.gpg.plugin>
<aerospike-client>7.2.1</aerospike-client>
<aerospike-reactor-client>7.1.0</aerospike-reactor-client>
<reactor-test>3.6.1</reactor-test>
<embedded-aerospike>3.1.5</embedded-aerospike>
<embedded-aerospike>3.1.6</embedded-aerospike>
<jodatime>2.12.7</jodatime>
<lombok>1.18.30</lombok>
<lombok>1.18.32</lombok>
<awaitility>4.2.1</awaitility>
<logback.test>1.5.3</logback.test>
<logback.test>1.5.6</logback.test>
<hibernate.validator>8.0.1.Final</hibernate.validator>
<netty.version>4.1.107.Final</netty.version>
<netty.version>4.1.110.Final</netty.version>
</properties>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion src/main/asciidoc/index.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= Spring Data Aerospike - Documentation
:doctype: book
:revnumber: 4.7.1
:revnumber: 4.8.0
:revdate: {localdate}
:toc:
:toc-placement!:
Expand Down
31 changes: 31 additions & 0 deletions src/main/asciidoc/reference/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,34 @@ class ApplicationConfig extends AbstractAerospikeDataConfiguration {

*Default*: `false` (store keys only as `String`).

[[configuration.write-sorted-maps]]
=== writeSortedMaps

[source,properties]
----
# application.properties
spring-data-aerospike.data.writeSortedMaps=true
----

Define how Maps and POJOs are written: `true` - as sorted maps (`TreeMap`, default), `false` - as unsorted (`HashMap`).

Writing as unsorted maps (`false`) degrades performance of Map-related operations, to be used only during upgrade from older versions of Spring Data Aerospike.

NOTE: Another way of defining the parameter is overriding the `configureDataSettings()` method.
It has precedence over reading from application.properties. Here is an example:

[source,java]
----
// overriding method
@EnableAerospikeRepositories(basePackageClasses = TestRepository.class)
class ApplicationConfig extends AbstractAerospikeDataConfiguration {
@Override
public void configureDataSettings(AerospikeDataSettings aerospikeDataSettings) {
aerospikeDataSettings.setWriteSortedMaps(true);
}
}
----

*Default*: `true` (write Maps and POJOs as sorted maps).
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class AerospikeDataSettings {
// Define how @Id fields (primary keys) and Map keys are stored: false - always as String,
// true - preserve original type if supported
boolean keepOriginalKeyTypes = false;
// Define how Maps are written: true - as TreeMaps (default), false - as HashMaps
// Define how Maps and POJOs are written: true - as sorted maps (TreeMaps, default), false - as unsorted (HashMaps)
// Writing as unsorted maps (false) degrades performance of Map-related operations, to be used only during upgrade
boolean writeSortedMaps = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,29 @@ enum AerospikeNullQueryCriterion {
}

enum AerospikeMetadata {
SINCE_UPDATE_TIME, // Exp.sinceUpdate(), milliseconds
LAST_UPDATE_TIME, // Exp.lastUpdate(), nanoseconds since epoch
VOID_TIME, // Exp.voidTime(), nanoseconds since epoch
TTL, // Exp.ttl(), integer seconds
RECORD_SIZE_ON_DISK, // Exp.deviceSize(), bytes
RECORD_SIZE_IN_MEMORY // Exp.memorySize(), bytes
/**
* Exp.sinceUpdate(), milliseconds
*/
SINCE_UPDATE_TIME,
/**
* Exp.lastUpdate(), nanoseconds since epoch
*/
LAST_UPDATE_TIME,
/**
* Exp.voidTime(), nanoseconds since epoch
*/
VOID_TIME,
/**
* Exp.ttl(), integer seconds
*/
TTL,
/**
* Exp.recordSize() (Exp.deviceSize() for Server ver. < 7.0), bytes
*/
RECORD_SIZE_ON_DISK,
/**
* Exp.recordSize() (Exp.memorySize() for Server ver. < 7.0), bytes
*/
RECORD_SIZE_IN_MEMORY
}
}

0 comments on commit 8df3a32

Please sign in to comment.