@Override public int size() { return hashMap.size(); }
@Override public int size() { return hashMap.size(); } }
@Override public void seal() { for (HashPartition hp : hashPartitions) { // Only seal those partitions that haven't been spilled and cleared, // because once a hashMap is cleared, it will become unusable if (hp.hashMap != null && hp.hashMap.size() != 0) { hp.hashMap.seal(); } } }
@Override public void seal() { for (HashPartition hp : hashPartitions) { // Only seal those partitions that haven't been spilled and cleared, // because once a hashMap is cleared, it will become unusable if (hp.hashMap != null && hp.hashMap.size() != 0) { hp.hashMap.seal(); } } }
public int size() { if (isHashMapOnDisk()) { // Rows are in a combination of the on-disk hashmap and the sidefile return rowsOnDisk + (sidefileKVContainer != null ? sidefileKVContainer.size() : 0); } else { // All rows should be in the in-memory hashmap return hashMap.size(); } } }
public int size() { if (isHashMapOnDisk()) { // Rows are in a combination of the on-disk hashmap and the sidefile return rowsOnDisk + (sidefileKVContainer != null ? sidefileKVContainer.size() : 0); } else { // All rows should be in the in-memory hashmap return hashMap.size(); } } }
@Override public void seal() { for (HashPartition hp : hashPartitions) { // Only seal those partitions that haven't been spilled and cleared, // because once a hashMap is cleared, it will become unusable if (hp.hashMap != null && hp.hashMap.size() != 0) { hp.hashMap.seal(); } } }