I am new to Ignite. Now, i want to load a CSV file into java server and access the cache using the C++ client. The example code is as below.
Java Code CacheConfiguration<Long, BinaryObject> cfg = new CacheConfiguration<Long, BinaryObject>("binaryCache"); // Sliding window of 1800 seconds. cfg.setExpiryPolicyFactory(FactoryBuilder.factoryOf( new CreatedExpiryPolicy(new Duration(SECONDS, 1800)))); IgniteCache<Long, BinaryObject> binaryCache = ignite.getOrCreateCache(cfg); IgniteDataStreamer<Long, BinaryObject> stmr = ignite.dataStreamer(binaryCache.getName()); BinaryObjectBuilder builder = ignite.binary().builder("test"); builder.setField("col1","luodan"); builder.setField("col2",29); BinaryObject bObj = builder.build(); stmr.addData(1L,bObj); C++ code Cache<int64_t, BinaryObject> binaryCache = grid.GetCache<int64_t, BinaryObject>("binaryCache"); BinaryObject obj = binaryCache.Get(1); However, there is a compile error error C2512: “ignite::binary::BinaryObject” do not has default-constructor How can i get the cache data from the java server using C++ client? can you give me a example? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/