/** * Sets the new value of this vertex. Setting a new value triggers the sending of outgoing messages from this vertex. * * @param newValue The new vertex value. */ public void setNewVertexValue(VertexValue newValue) { outVal.f1 = newValue; out.collect(outVal); }
/** * Checks whether the operating system this JVM runs on is FreeBSD. * * @return <code>true</code> if the operating system this JVM runs on is * FreeBSD, <code>false</code> otherwise */ public static boolean isFreeBSD() { return getCurrentOperatingSystem() == FREE_BSD; }
/** * Utility method for logging */ public static void setLoggingLevel(Level lvl) { LogUtils.initializeDefaultConsoleLogger(lvl); }
public AvroInputFormat(Class<? extends AvroBaseValue<E>> wrapperClass) { this.avroWrapperTypeClass = wrapperClass; this.avroValueType = ReflectionUtil.getTemplateType1(wrapperClass); this.unsplittable = true; }
@Override public void close() { this.outputCollector.close(); } }
@Override protected Kryo initialValue() { final Kryo kryo = new SopremoKryo(); // kryo.setReferences(false); return kryo; }; };
/** * Pads the given collection with <code>null</code>s until the collection has at least the given size. * * @param collection * the collection to pad * @param size * the desired minimum size */ public static void ensureSize(final Collection<?> collection, final int size) { ensureSize(collection, size, null); }
@Override public boolean removeAll(final Collection<?> c) { boolean modified = false; for (final Object object : c) modified |= this.remove(object); return modified; }
@Override public void map(Record record, Collector<Record> out) throws Exception { out.collect(record); } }
/** * Checks whether the operating system this JVM runs on is FreeBSD. * * @return <code>true</code> if the operating system this JVM runs on is * FreeBSD, <code>false</code> otherwise */ public static boolean isFreeBSD() { return getCurrentOperatingSystem() == FREE_BSD; }
@Override public void close() { this.outputCollector.close(); } }
@Override public void flatMap(Tuple3<Integer, Long, String> value, Collector<String> out) throws Exception { out.collect(value.f2); } });
/** * Checks whether the operating system this JVM runs on is Windows. * * @return <code>true</code> if the operating system this JVM runs on is * Windows, <code>false</code> otherwise */ public static boolean isWindows() { return getCurrentOperatingSystem() == WINDOWS; }
@Override public void map(Record record, Collector<Record> out) throws Exception { out.collect(record); } }
@Override public void map(Record rec, Collector<Record> out) { out.collect(rec); } }