/** * Empties the map. */ public void clear() { this._map.clear(); }
/** Removes all postings from this document */ public void clear() { occurrences.clear(); documentLength = 0; }
public void clear() { reuse.clear(); safeToReuse.clear(); }
public void clear() { reuse.clear(); safeToReuse.clear(); }
public void clear() { reuse.clear(); safeToReuse.clear(); }
/** * Initialises the arrays prior of retrieval. Only the first time it is called, * it will allocate memory for the arrays. */ public void initialise() { super.initialise(); metaMap.clear(); metadata = new String[0][]; } /**
/** * Resets the hashmap that contains the mapping * from the terms to the term ids. If the property * <tt>garbageCollection</tt> is <tt>true</tt>, * then it performs garbage collection in order to * free alocated memory. This method should be * called after the creation of the lexicon. */ @edu.umd.cs.findbugs.annotations.SuppressWarnings( value="DM_GC", justification="Forcing GC is an essential part of releasing" + "memory for further indexing") public void reset() { if (counter == 0) return; map.clear(); if (garbageCollection) System.gc(); counter = 0; code = 0; }
/** * Resets the hashmap that contains the mapping * from the terms to the term ids. If the property * <tt>garbageCollection</tt> is <tt>true</tt>, * then it performs garbage collection in order to * free alocated memory. This method should be * called after the creation of the lexicon. */ @edu.umd.cs.findbugs.annotations.SuppressWarnings( value="DM_GC", justification="Forcing GC is an essential part of releasing" + "memory for further indexing") public void reset() { if (counter == 0) return; map.clear(); if (garbageCollection) System.gc(); counter = 0; code = 0; }
/** * Delete contents of metadata index (but keep keys). */ public void close() throws IOException { metadata.clear(); if (key2meta!=null) key2meta.clear(); }
/** * Initialises the arrays prior of retrieval. Only the first time it is called, * it will allocate memory for the arrays. */ public void initialise() { super.initialise(); metaMap.clear(); metadata = new String[0][]; } /**
@Override public void clear() { super.clear(); for(int fi=0;fi<fieldCount;fi++) field_tfs[fi].clear(); } }
public void reset() { if (safeToReuse != null) { safeToReuse.clear(); } objectsCacheOnWrite.clear(); objectsCacheOnRead.clear(); immutableCache.clear(); objectIdOnCache = 0; }
public void reset() { if (safeToReuse != null) { safeToReuse.clear(); } objectsCacheOnWrite.clear(); objectsCacheOnRead.clear(); immutableCache.clear(); objectIdOnCache = 0; }
public void reset() { if (safeToReuse!=null) { safeToReuse.clear(); } objectsCacheOnWrite.clear(); objectsCacheOnRead.clear(); } public ClassLoader getLoader() {
public void initialiseExpr(final CtuluExpr _expr) { super.initialiseExpr(_expr); final GISZoneCollection coll = ((ZModelePointEditable) super.data_).getGeomData(); final int nb = coll.getNbAttributes(); if (nb > 0) { if (varAtt_ == null) { varAtt_ = new TObjectIntHashMap(nb); } else { varAtt_.clear(); } for (int i = 0; i < nb; i++) { final GISAttributeInterface att = coll.getAttribute(i); if (Number.class.isAssignableFrom(att.getDataClass())) { varAtt_.put(_expr.addVar(att.getName(), att.getLongName()), i); } } } }
public void initialiseExpr(final CtuluExpr _expr) { super.initialiseExpr(_expr); final GISZoneCollection coll = ((ZModeleEditable) super.data_).getGeomData(); final int nb = coll.getNbAttributes(); if (nb > 0) { if (varAtt_ == null) { varAtt_ = new TObjectIntHashMap(nb); } else { varAtt_.clear(); } for (int i = 0; i < nb; i++) { final GISAttributeInterface att = coll.getAttribute(i); if (!att.isAtomicValue() && Number.class.isAssignableFrom(att.getDataClass())) { varAtt_.put(_expr.addVar(att.getName(), att.getLongName()), i); } } } }
public void initialiseExpr(final CtuluExpr _expr) { super.initialiseExpr(_expr); final GISZoneCollection coll = ((ZModeleGeom) super.data_).getGeomData(); final int nb = coll.getNbAttributes(); if (nb > 0) { if (varAtt_ == null) { varAtt_ = new TObjectIntHashMap(nb); } else { varAtt_.clear(); } for (int i = 0; i < nb; i++) { final GISAttributeInterface att = coll.getAttribute(i); if (!att.isAtomicValue() && Number.class.isAssignableFrom(att.getDataClass())) { varAtt_.put(_expr.addVar(att.getName(), att.getLongName()), i); } } } }
public void initialiseExpr(final CtuluExpr _expr) { super.initialiseExpr(_expr); final GISZoneCollection coll = ((ZModeleEditable) super.data_).getGeomData(); final int nb = coll.getNbAttributes(); if (nb > 0) { if (varAtt_ == null) { varAtt_ = new TObjectIntHashMap(nb); } else { varAtt_.clear(); } for (int i = 0; i < nb; i++) { final GISAttributeInterface att = coll.getAttribute(i); if (!att.isAtomicValue() && Number.class.isAssignableFrom(att.getDataClass())) { varAtt_.put(_expr.addVar(att.getName(), att.getLongName()), i); } } } }