-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrading pointstore #284
upgrading pointstore #284
Conversation
@@ -296,7 +296,7 @@ public RCF3(Builder<?> builder) { | |||
} | |||
|
|||
private void initCompactFloat(Builder<?> builder) { | |||
IPointStore tempStore = RCF3PointStore.builder().capacity(pointStoreCapacity).initialSize(2 * sampleSize) | |||
IPointStore tempStore = PointStore.builder().capacity(pointStoreCapacity).initialSize(2 * sampleSize) | |||
.internalShinglingEnabled(internalShinglingEnabled).shingleSize(shingleSize).dimensions(dimensions) | |||
// .dynamicResizingEnabled(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
@@ -42,6 +44,60 @@ public IntervalManager(int capacity) { | |||
freeIndexesEnd[0] = capacity - 1; | |||
} | |||
|
|||
static BitSet toBits(int[] refCount) { | |||
checkArgument(refCount != null, " not meaninglful"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in error message
if (first < 0) { | ||
break; | ||
} | ||
} else { // we do not all distiction between all full and all empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do not distinguish between?
return capacity; | ||
} | ||
|
||
/** | ||
* @return the number of nodes whose data is currently stored. | ||
* @return the number of indices whioch are being maintained |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in comment
Description of changes: Upgrades the pointstore in RCF2.0 and prepares for the 3.0 version. The state classes are unchanged.