public TIntIntIterator iterator1() { return _map1.iterator(); }
public TIntIntIterator iterator2() { return _map2.iterator(); } }
private void state() { logger.debug("***REALTIME*** Geometric merge state"); logger.debug("Number of columns: " + parts.size()); TIntIntIterator it = parts.iterator(); while (it.hasNext()) { it.advance(); logger.debug("Column: " + it.key()); logger.debug("Column prefixID: " + it.value()); logger.debug("Column merges: " + sizes.get(it.key())); logger.debug("Column merges (max): " + Math.pow(g, it.key())); } } }
public GISAttributeModel createUpperModel(final int _numObject, final TIntIntHashMap _newIdxOldIdx) { if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final ArrayList newList = new ArrayList(_numObject); Collections.fill(newList, getAttribute().getDefaultValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList.set(newIdx, list_.get(it.value())); } } return new GISAttributeModelBooleanList(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject, final TIntIntHashMap _newIdxOldIdx) { if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final ArrayList newList = new ArrayList(_numObject); Collections.fill(newList, getAttribute().getDefaultValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList.set(newIdx, list_.get(it.value())); } } return new GISAttributeModelObjectList(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject,final TIntIntHashMap _newIdxOldIdx){ if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final boolean[] newList = new boolean[_numObject]; Arrays.fill(newList, ((Boolean) getAttribute().getDefaultValue()).booleanValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList[newIdx] = list_[it.value()]; } } return new GISAttributeModelBooleanArray(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject,final TIntIntHashMap _newIdxOldIdx){ if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final int[] newList = new int[_numObject]; Arrays.fill(newList, ((Integer) getAttribute().getDefaultValue()).intValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList[newIdx] = list_[it.value()]; } } return new GISAttributeModelIntegerArray(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject,final TIntIntHashMap _newIdxOldIdx){ if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final double[] newList = new double[_numObject]; Arrays.fill(newList, ((Double) getAttribute().getDefaultValue()).doubleValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList[newIdx] = list_[it.value()]; } } return new GISAttributeModelDoubleArray(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject,final TIntIntHashMap _newIdxOldIdx){ if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final Object[] newList = new Object[_numObject]; Arrays.fill(newList, getAttribute().getDefaultValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList[newIdx] = list_[it.value()]; } } return new GISAttributeModelObjectArray(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject, final TIntIntHashMap _newIdxOldIdx) { if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final TIntArrayList newList = new TIntArrayList(_numObject); newList.fill(((Integer) getAttribute().getDefaultValue()).intValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList.set(newIdx, list_.get(it.value())); } } return new GISAttributeModelIntegerList(newList, this); }
public GISAttributeModel createUpperModel(final int _numObject, final TIntIntHashMap _newIdxOldIdx) { if (_numObject < getSize()) { throw new IllegalArgumentException("bad num objects"); } if (_numObject == getSize()) { return this; } final CDoubleArrayList newList = new CDoubleArrayList(_numObject); newList.fill(((Double) getAttribute().getDefaultValue()).doubleValue()); if (_newIdxOldIdx != null) { final TIntIntIterator it = _newIdxOldIdx.iterator(); for (int i = _newIdxOldIdx.size(); i-- > 0;) { it.advance(); final int newIdx = it.key(); newList.set(newIdx, list_.get(it.value())); } } return new GISAttributeModelDoubleList(newList, this); }