/** Remove the records for a given term */ public void deleteTerm(int termid) { terms.remove(termid); }
/** Remove the records for a given term */ public void deleteTerm(int termid) { terms.remove(termid); }
public void reassignObjectInCacheRead(int key, Object value) { objectsCacheOnRead.remove(key); putObjectInCacheRead(key, value); }
/** * Remove a term posting list from the index, e.g. remove a stopword * @param ptr */ public void remove(int ptr) { if (postings.containsKey(ptr)) postings.remove(ptr); }
public void reassignObjectInCacheRead(int key, Object value) { objectsCacheOnRead.remove(key); putObjectInCacheRead(key,value); }
public void reassignObjectInCacheRead(int key, Object value) { objectsCacheOnRead.remove(key); putObjectInCacheRead(key, value); }
/** * Deletes a key/value pair from the map. * * @param key an <code>Object</code> value * @return the removed value, or Integer(0) if it was not found in the map */ public Object remove(Object key) { return wrapValue(_map.remove(unwrapKey(key))); }
public void setValueAt(final Object _value, final int _rowIndex, final int _columnIndex) { if (_columnIndex == 0 || _value == getValueAt(_rowIndex, _columnIndex)) { return; } final int var = _columnIndex - 1; if (!editors_[var].isValid(_value)) { return; } final int realIdx = getRealIdx(_rowIndex); if (_value == null || _value.equals(values_[var].getObjectValueAt(realIdx))) { if (realIdxnewValues_ != null && realIdxnewValues_[var] != null) { realIdxnewValues_[var].remove(realIdx); } return; } if (realIdxnewValues_ == null) { realIdxnewValues_ = new TIntObjectHashMap[editors_.length]; } if (realIdxnewValues_[var] == null) { realIdxnewValues_[var] = new TIntObjectHashMap(idx_.length); } realIdxnewValues_[var].put(realIdx, _value); }
public boolean remove(final EbliListeSelectionMulti _m) { if ((_m == null) || _m.isEmpty()) { return false; } boolean r = false; final TIntObjectIterator it = _m.idxListSelection_.iterator(); for (int i = _m.idxListSelection_.size(); i-- > 0;) { it.advance(); final int idx = it.key(); final CtuluListSelection thisSelection = get(idx); if (thisSelection != null && thisSelection.remove((CtuluListSelection) it.value())) { r = true; if (thisSelection.isEmpty()) { idxListSelection_.remove(idx); } } } return r; }
public boolean xor(final EbliListeSelectionMulti _m) { if ((_m == null) || _m.isEmpty()) { return false; } boolean r = false; final TIntObjectIterator itxor = _m.idxListSelection_.iterator(); for (int i = _m.idxListSelection_.size(); i-- > 0;) { itxor.advance(); final int idx = itxor.key(); final CtuluListSelection e = (CtuluListSelection) itxor.value(); if (!e.isEmpty()) { CtuluListSelection thisSelection = get(idx); if (thisSelection == null) { thisSelection = new CtuluListSelection(e); idxListSelection_.put(idx, thisSelection); r = true; } else { if (thisSelection.xor((CtuluListSelection) itxor.value())) { r = true; if (thisSelection.isEmpty()) { idxListSelection_.remove(idx); } } } } } return r; }