long tmpTime = weighting.calcMillis(iter, reverseFlow, currEdge.edge) + currEdge.time; int tmpNode = iter.getAdjNode(); IsoLabel nEdge = fromMap.get(tmpNode); if (nEdge == null) { nEdge = new IsoLabel(iter.getEdge(), tmpNode, tmpWeight, tmpTime, tmpDistance);
/** * @return Returns the value associated with the given key or the default value * for the key type, if the key is not associated with any value. * <p> * <b>Important note:</b> For primitive type values, the value returned for a non-existing * key may not be the default value of the primitive type (it may be any value previously * assigned to that slot). */ public VType get(int key) { return map.get(key); }
@Override public VType get(int key) { return map.get(key); }
/** * Return true if all keys of some other container exist in this container. * Values are compared using {@link Objects#equals(Object)} method. */ protected boolean equalElements(IntObjectHashMap<?> other) { if (other.size() != size()) { return false; } for (IntObjectCursor<?> c : other) { int key = c.key; if (!containsKey(key) || !java.util.Objects.equals(get(key), c.value)) { return false; } } return true; }
/** * @return Returns the value associated with the given key or the default value * for the key type, if the key is not associated with any value. * <p> * <b>Important note:</b> For primitive type values, the value returned for a non-existing * key may not be the default value of the primitive type (it may be any value previously * assigned to that slot). */ public VType get(int key) { return map.get(key); }
@Override public VType get(int key) { return map.get(key); }
/** * @return Returns the value associated with the given key or the default value * for the key type, if the key is not associated with any value. * <p> * <b>Important note:</b> For primitive type values, the value returned for a non-existing * key may not be the default value of the primitive type (it may be any value previously * assigned to that slot). */ public VType get(int key) { return map.get(key); }
/** * @return Returns the value associated with the given key or the default value * for the key type, if the key is not associated with any value. * <p> * <b>Important note:</b> For primitive type values, the value returned for a non-existing * key may not be the default value of the primitive type (it may be any value previously * assigned to that slot). */ public VType get(int key) { return map.get(key); }
@Override public int test() { int res = 0; for ( int i = 0; i < m_keys.length; ++i ) if ( m_map.get( m_keys[ i ] ) != null ) res ^= 1; return res; } }
/** * @return Returns the value associated with the given key or the default value * for the key type, if the key is not associated with any value. * <p> * <b>Important note:</b> For primitive type values, the value returned for a non-existing * key may not be the default value of the primitive type (it may be any value previously * assigned to that slot). */ public VType get(int key) { return map.get(key); }
/** * @return Returns the value associated with the given key or the default value * for the key type, if the key is not associated with any value. * <p> * <b>Important note:</b> For primitive type values, the value returned for a non-existing * key may not be the default value of the primitive type (it may be any value previously * assigned to that slot). */ public VType get(int key) { return map.get(key); }
@Override public VType get(int key) { return map.get(key); }
@Override public VType get(int key) { return map.get(key); }
@Override public VType get(int key) { return map.get(key); }
public ReduceResult reduce(byte percolatorTypeId, List<PercolateShardResponse> shardResults, HasContextAndHeaders headersContext) { PercolatorType percolatorType = percolatorTypes.get(percolatorTypeId); return percolatorType.reduce(shardResults, headersContext); }
public static NamedAnalyzer buildNamedAnalyzer(int precisionStep) { NamedAnalyzer namedAnalyzer = builtIn.get(precisionStep); if (namedAnalyzer == null) { namedAnalyzer = new NamedAnalyzer("_int/" + precisionStep, AnalyzerScope.INDEX, new NumericIntegerAnalyzer(precisionStep)); } return namedAnalyzer; }
public static NamedAnalyzer buildNamedAnalyzer(int precisionStep) { NamedAnalyzer namedAnalyzer = builtIn.get(precisionStep); if (namedAnalyzer == null) { namedAnalyzer = new NamedAnalyzer("_double/" + precisionStep, AnalyzerScope.INDEX, new NumericDoubleAnalyzer(precisionStep)); } return namedAnalyzer; }
public static NamedAnalyzer buildNamedAnalyzer(int precisionStep) { NamedAnalyzer namedAnalyzer = builtIn.get(precisionStep); if (namedAnalyzer == null) { namedAnalyzer = new NamedAnalyzer("_float/" + precisionStep, AnalyzerScope.INDEX, new NumericFloatAnalyzer(precisionStep)); } return namedAnalyzer; }
public static NamedAnalyzer buildNamedAnalyzer(int precisionStep) { NamedAnalyzer namedAnalyzer = builtIn.get(precisionStep); if (namedAnalyzer == null) { namedAnalyzer = new NamedAnalyzer("_long/" + precisionStep, AnalyzerScope.INDEX, new NumericLongAnalyzer(precisionStep)); } return namedAnalyzer; }
private void addFragment(final FragmentData fragmentData) { final FragmentHandle fragmentHandle = fragmentData.getHandle(); final int majorFragmentId = fragmentHandle.getMajorFragmentId(); final int minorFragmentId = fragmentHandle.getMinorFragmentId(); IntObjectHashMap<FragmentData> minorMap = fragmentDataMap.get(majorFragmentId); if (minorMap == null) { minorMap = new IntObjectHashMap<>(); fragmentDataMap.put(majorFragmentId, minorMap); } minorMap.put(minorFragmentId, fragmentData); fragmentDataSet.add(fragmentData); }