public Builder addSymbolStatistics(Map<Symbol, SymbolStatsEstimate> symbolStatistics) { this.symbolStatistics = this.symbolStatistics.plusAll(symbolStatistics); return this; }
public Builder addSymbolStatistics(Map<Symbol, SymbolStatsEstimate> symbolStatistics) { this.symbolStatistics = this.symbolStatistics.plusAll(symbolStatistics); return this; }
public Builder addSymbolStatistics(Map<Symbol, SymbolStatsEstimate> symbolStatistics) { this.symbolStatistics = this.symbolStatistics.plusAll(symbolStatistics); return this; }
UtilityTest.assertEqualsAndHash(pmap, pmap.plusAll(pmap));
UtilityTest.assertEqualsAndHash(pmap, pmap.plusAll(pmap));
/** * @param map * @return * @see org.pcollections.PMap#plusAll(java.util.Map) */ @Override public PersistentMapX<K, V> plusAll(final Map<? extends K, ? extends V> map) { return withMap(this.map.plusAll(map)); }
@SafeVarargs private Maker(Maker<T> that, PropertyValue<? super T, ?>... propertyValues) { this.instantiator = that.instantiator; this.values = that.values.plusAll(byProperty(propertyValues)); }
@SafeVarargs private Maker(Maker<T> that, PropertyValue<? super T, ?>... propertyValues) { this.instantiator = that.instantiator; this.values = that.values.plusAll(byProperty(propertyValues)); }
private Record with(Map<Key<?>, Object> values) { return new HashRecord(this.values.plusAll(values)); }
public static <K,V> Monoid<PMap<K,V>> toPMap() { return Monoid.<PMap<K,V>>of(HashTreePMap.empty(), (PMap<K,V> a) -> b -> a.plusAll(b)); }
public static <K,V> Monoid<PMap<K,V>> toPMap() { return Monoid.<PMap<K,V>>of(HashTreePMap.empty(), (PMap<K,V> a) -> b -> a.plusAll(b)); }
public static <K,V> Monoid<PMap<K,V>> toPMap() { return Monoid.<PMap<K,V>>of(HashTreePMap.empty(), (PMap<K,V> a) -> b -> a.plusAll(b), (in)-> { List w = ((TupleWrapper) ()-> in).values(); return HashTreePMap.singleton((K)w.get(0), (V)w.get(1)); }); }
/** * <pre> * {@code * PMap<Integer,String> q = Reducers.<Integer,String>toPMap() .mapReduce(Stream.of(Arrays.asList("hello",1),Arrays.asList("world",2))); * * } * </pre> * @return Reducer for PMap */ public static <K, V> Reducer<PMap<K, V>> toPMap() { return Reducer.<PMap<K, V>> of(HashTreePMap.empty(), (final PMap<K, V> a) -> b -> a.plusAll(b), (in) -> { final List w = ((TupleWrapper) () -> in).values(); return HashTreePMap.singleton((K) w.get(0), (V) w.get(1)); }); } /**