|
|
|
@ -363,10 +363,8 @@ public class HeapReader {
|
|
|
|
|
log.severe("this.index == null in size(); closeDate=" + this.closeDate + ", now=" + new Date() + this.heapFile == null ? "" : (" file = " + this.heapFile.toString()));
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
synchronized (this.index) {
|
|
|
|
|
return (this.index == null) ? 0 : this.index.size();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isEmpty() {
|
|
|
|
|
assert (this.index != null) : "index == null; closeDate=" + this.closeDate + ", now=" + new Date();
|
|
|
|
@ -374,10 +372,8 @@ public class HeapReader {
|
|
|
|
|
log.severe("this.index == null in isEmpty(); closeDate=" + this.closeDate + ", now=" + new Date() + this.heapFile == null ? "" : (" file = " + this.heapFile.toString()));
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
synchronized (this.index) {
|
|
|
|
|
return this.index.isEmpty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* test if a key is in the heap file. This does not need any IO, because it uses only the ram index
|
|
|
|
|