Comments (3)
This is an oversight. I will fix this today.
On 2 May 2014 13:00, "gilfernandes" [email protected] wrote:
Hello,
I was just playing around with the examples and I got surprised by this
error message on this code:package com.onepointltd.file.operations;
...
@test
public void testHugeMap() {
HugeConfig config = HugeConfig.DEFAULT.clone()
.setSegments(128)
.setSmallEntrySize(128)
.setCapacity(10000);
}I get these error messages:
setSegments(int) is not public in HugeConfig; cannot be accessed from
outside packagesetSmallEntrySize(int) is not public in HugeConfig; cannot be accessed
from outside packagesetCapacity(int) is not public in HugeConfig; cannot be accessed from
outside packageMy current maven dependency is:
net.openhft collections-sandbox 3.0.3-SNAPSHOT jarIf this is really a stupid question, please bare with me. I am just a
beginner using OpenHFT.Best regards,
Gil
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/20
.
from hugecollections-old.
Gil
Thanks for your feedback, we will definatly make the change that you suggest but I recommend you donβt use the code in collections-sandbox, Itsβ our beta development area and contains work that is in progress. Its much better to use.
net.openhft collections 3.0.2having said that, I think your comment about the visibility of these methods is an over site and we will correct this in the next release.
Rob
On 2 May 2014, at 13:00, gilfernandes [email protected] wrote:
Hello,
I was just playing around with the examples and I got surprised by this error message on this code:
package com.onepointltd.file.operations;
...
@test
public void testHugeMap() {
HugeConfig config = HugeConfig.DEFAULT.clone()
.setSegments(128)
.setSmallEntrySize(128)
.setCapacity(10000);
}
I get these error messages:setSegments(int) is not public in HugeConfig; cannot be accessed from outside package
setSmallEntrySize(int) is not public in HugeConfig; cannot be accessed from outside package
setCapacity(int) is not public in HugeConfig; cannot be accessed from outside package
My current maven dependency is:
net.openhft collections-sandbox 3.0.3-SNAPSHOT jar If this is really a stupid question, please bare with me. I am just a beginner using OpenHFT.Best regards,
Gil
β
Reply to this email directly or view it on GitHub.
from hugecollections-old.
Hello, Rob,
I have tried:
git clone --branch collections-3.0.2 https://github.com/OpenHFT/HugeCollections.git
and
mvn clean install
Then I changed the dependency to:
<dependency>
<groupId>net.openhft</groupId>
<artifactId>collections</artifactId>
<version>3.0.2</version>
</dependency>
but the problem persists.
In the source code of HugeConfig I find:
HugeConfig setSmallEntrySize(int smallEntrySize) {
this.smallEntrySize = Maths.nextPower2(smallEntrySize, 64);
return this;
}
...
HugeConfig setSegments(int segments) {
this.segments = Maths.nextPower2(segments, 16);
return this;
}
And this code suggests that the setter methods are package protected.
But anyway I can use the collection, if I use only:
HugeConfig config = HugeConfig.DEFAULT.clone();
Anyway: I like your project very much and really appreciate your excellent work.
best regards,
Gil
from hugecollections-old.
Related Issues (20)
- Comparing behaviour of HugeHashMap with HashMap HOT 2
- custom marshalling/serialization HOT 16
- remark on replication/distribution HOT 9
- how to get exactly 1 OpenHFT test to run HOT 10
- Using Shared/HugeHashMap HOT 3
- PingPong latency test across /dev/shm/SharedHashMap IPC ... HOT 19
- support for "read through" and "write behind" gettr/settrs (in addition to JBI) HOT 25
- Cache size exceed bug HOT 1
- TCPSocketReplication4WayMapTest testBufferOverflow failed (Windows 8.1) HOT 10
- VanillaShortShortMultiMap is full when capacity is still available HOT 5
- Difference between setSmallEntrySize and setCapacity
- SharedHashMap: iterating using keyset, valueset is very slow for larger tables HOT 8
- problem using SharedHashMapBuilder ... HOT 6
- OpenHFT scope of capability re: SHMEntry fields (user JBI supplied) and "barrier" operations HOT 9
- HugeHashMap with JPA elements HOT 4
- SharedHashMap causing crash on Windows OS HOT 28
- Chronicle Map not thread-safe in certain circumstances HOT 14
- ChronicleMap / ChronicleMapBuilder - actualEntriesPerSegment restricted to minimum of 8 HOT 13
- too many Segment.getKey() invocations HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugecollections-old.