Skip to content

Commit

Permalink
add default values for settings, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr committed Jan 3, 2024
1 parent 1976133 commit a3e0a0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ public class AerospikeSettings {
// Namespace
String namespace;
// Enable scan operation
boolean scansEnabled;
boolean scansEnabled = false;
// Send user defined key in addition to hash digest on both reads and writes
boolean sendKey;
boolean sendKey = true;
// Create secondary indexes specified using `@Indexed` annotation on startup
boolean createIndexesOnStartup;
boolean createIndexesOnStartup = true;
// Automatically refresh indexes cache every <N> seconds
int indexCacheRefreshSeconds;
int indexCacheRefreshSeconds = 3600;
// Automatically refresh cached server version every <N> seconds
int serverVersionRefreshSeconds;
int serverVersionRefreshSeconds = 3600;
// Limit amount of results returned by server. Non-positive value means no limit
long queryMaxRecords;
long queryMaxRecords = 10_000L;
// Maximum batch size for batch write operations
int batchWriteSize;
int batchWriteSize = 100;
// Define how @Id fields (primary keys) and Map keys are stored: false - always as String,
// true - preserve original type if supported
boolean keepOriginalKeyTypes;
boolean keepOriginalKeyTypes = false;
}
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring-data-aerospike.hosts=localhost:3000
spring-data-aerospike.namespace=TEST
spring-data-aerospike.namespace=test
spring-data-aerospike.scans-enabled=false
spring-data-aerospike.send-key=true
spring-data-aerospike.create-indexes-on-startup=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ void findPersonsByFriendFriendAddressZipCode() {
}

@Test
// find by deeply nested String POJO field
// find by deeply nested String POJO field
void findPersonsByFriendFriendFriendFriendFriendFriendFriendFriendBestFriendFriendAddressZipCode() {
String zipCode = "C0123";
Address address = new Address("Foo Street 1", 1, zipCode, "Bar");
Expand Down Expand Up @@ -2306,7 +2306,7 @@ void findPersonsByFriendFriendFriendFriendFriendFriendFriendFriendBestFriendFrie
}

@Test
// find by deeply nested Integer POJO field
// find by deeply nested Integer POJO field
void findPersonsByFriendFriendFriendFriendFriendFriendFriendFriendBestFriendAddressApartmentNumber() {
int apartment = 10;
Address address = new Address("Foo Street 1", apartment, "C0123", "Bar");
Expand Down Expand Up @@ -2345,7 +2345,7 @@ void findPersonsByFriendFriendFriendFriendFriendFriendFriendFriendBestFriendAddr
}

@Test
// find by deeply nested POJO
// find by deeply nested POJO
void findPersonsByFriendFriendFriendFriendFriendFriendFriendFriendBestFriendBestFriendAddress() {
if (serverVersionSupport.findByPojo()) {
Address address = new Address("Foo Street 1", 1, "C0123", "Bar");
Expand Down

0 comments on commit a3e0a0d

Please sign in to comment.