Refactor filter impl

This commit is contained in:
Ankit Gupta
2014-04-22 00:04:56 -07:00
parent 5e797cf0dd
commit 677b0d6d3f
4 changed files with 11 additions and 15 deletions

View File

@@ -152,7 +152,7 @@ public class Options {
*/
public Options setFilter(Filter filter) {
assert(isInitialized());
setFilter0(nativeHandle_, filter.getNativeHandle());
setFilter0(nativeHandle_, filter);
return this;
}
@@ -1250,7 +1250,7 @@ public class Options {
private native void useFixedLengthPrefixExtractor(
long handle, int prefixLength);
private native void setFilter0(long optHandle, long fpHandle);
private native void setFilter0(long optHandle, Filter fp);
long nativeHandle_;
long cacheSize_;