use of org.apache.ignite.binary.BinaryBasicIdMapper in project ignite by apache.
the class GridDefaultBinaryMappersBinaryMetaDataSelfTest method getConfiguration.
/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
BinaryConfiguration bCfg = new BinaryConfiguration();
bCfg.setNameMapper(new BinaryBasicNameMapper(false));
bCfg.setIdMapper(new BinaryBasicIdMapper(false));
bCfg.setClassNames(Arrays.asList(TestObject1.class.getName(), TestObject2.class.getName()));
cfg.setBinaryConfiguration(bCfg);
cfg.setMarshaller(new BinaryMarshaller());
CacheConfiguration ccfg = new CacheConfiguration(DEFAULT_CACHE_NAME);
cfg.setCacheConfiguration(ccfg);
GridDefaultBinaryMappersBinaryMetaDataSelfTest.cfg = cfg;
return cfg;
}
use of org.apache.ignite.binary.BinaryBasicIdMapper in project ignite by apache.
the class GridSimpleLowerCaseBinaryMappersBinaryMetaDataSelfTest method getConfiguration.
/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
BinaryConfiguration bCfg = cfg.getBinaryConfiguration();
bCfg.setNameMapper(new BinaryBasicNameMapper());
bCfg.setIdMapper(new BinaryBasicIdMapper(true));
return cfg;
}
use of org.apache.ignite.binary.BinaryBasicIdMapper in project ignite by apache.
the class GridCacheBinaryStoreBinariesSimpleNameMappersSelfTest method getConfiguration.
/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
BinaryConfiguration bCfg = cfg.getBinaryConfiguration();
bCfg.setNameMapper(new BinaryBasicNameMapper());
bCfg.setIdMapper(new BinaryBasicIdMapper(true));
return cfg;
}
Aggregations