Package com.aerospike.mapper.tools
Class AeroMapper.Builder
java.lang.Object
com.aerospike.mapper.tools.AeroMapper.Builder
- Enclosing class:
- AeroMapper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConverter
(Object converter) Add in a custom type converter.build()
preLoadClass
(Class<?> clazz) withBatchPolicy
(com.aerospike.client.policy.BatchPolicy policy) withConfiguration
(String configurationYaml) withConfiguration
(String configurationYaml, boolean allowsInvalid) withConfigurationFile
(File file) withConfigurationFile
(File file, boolean allowsInvalid) withConfigurationFile
(InputStream ios, boolean allowsInvalid) withQueryPolicy
(com.aerospike.client.policy.QueryPolicy policy) withReadPolicy
(com.aerospike.client.policy.Policy policy) withScanPolicy
(com.aerospike.client.policy.ScanPolicy policy) withWritePolicy
(com.aerospike.client.policy.Policy policy)
-
Constructor Details
-
Builder
public Builder(com.aerospike.client.IAerospikeClient client)
-
-
Method Details
-
addConverter
Add in a custom type converter. The converter must have methods which implement the ToAerospike and FromAerospike annotation.- Parameters:
converter
- The custom converter- Returns:
- this object
-
preLoadClass
-
withConfigurationFile
- Throws:
IOException
-
withConfigurationFile
public AeroMapper.Builder withConfigurationFile(File file, boolean allowsInvalid) throws IOException - Throws:
IOException
-
withConfigurationFile
- Throws:
IOException
-
withConfigurationFile
public AeroMapper.Builder withConfigurationFile(InputStream ios, boolean allowsInvalid) throws IOException - Throws:
IOException
-
withConfiguration
public AeroMapper.Builder withConfiguration(String configurationYaml) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
withConfiguration
public AeroMapper.Builder withConfiguration(String configurationYaml, boolean allowsInvalid) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
withReadPolicy
public AeroMapper.Builder.AeroPolicyMapper withReadPolicy(com.aerospike.client.policy.Policy policy) -
withWritePolicy
public AeroMapper.Builder.AeroPolicyMapper withWritePolicy(com.aerospike.client.policy.Policy policy) -
withBatchPolicy
public AeroMapper.Builder.AeroPolicyMapper withBatchPolicy(com.aerospike.client.policy.BatchPolicy policy) -
withScanPolicy
public AeroMapper.Builder.AeroPolicyMapper withScanPolicy(com.aerospike.client.policy.ScanPolicy policy) -
withQueryPolicy
public AeroMapper.Builder.AeroPolicyMapper withQueryPolicy(com.aerospike.client.policy.QueryPolicy policy) -
build
-