public static EchoBundle extract(int param, Object bundle) { EchoBundle echoBundle = BundleFactory.extract(EchoBundle.class); if (null != echoBundle) { echoBundle.param = param; echoBundle.bundle = bundle; } return echoBundle; }
public T get() { if (bundle == null) { container = new I18NContainer(); bundle = factory.create(bundleType, container); } return bundle; }
/** * Create a {@link UncommittedBundle} with the specified keys at the specified step. For use by * {@link InProcessGroupByKeyOnly} {@link PTransform PTransforms}. */ public <T> UncommittedBundle<T> createKeyedBundle( CommittedBundle<?> input, Object key, PCollection<T> output) { return bundleFactory.createKeyedBundle(input, key, output); }
/** * Create a {@link UncommittedBundle} whose elements belong to the specified {@link PCollection}. */ public <T> UncommittedBundle<T> createBundle(CommittedBundle<?> input, PCollection<T> output) { return bundleFactory.createBundle(input, output); }
/** Create a {@link UncommittedBundle} for use by a source. */ public <T> UncommittedBundle<T> createRootBundle(PCollection<T> output) { return bundleFactory.createRootBundle(output); }
public static EchoBundle extract() { EchoBundle echoBundle = BundleFactory.extract(EchoBundle.class); if (null != echoBundle) {} return echoBundle; }
/** * Create a {@link UncommittedBundle} with the specified keys at the specified step. For use by * {@link InProcessGroupByKeyOnly} {@link PTransform PTransforms}. */ public <K, T> UncommittedBundle<T> createKeyedBundle( CommittedBundle<?> input, StructuralKey<K> key, PCollection<T> output) { return bundleFactory.createKeyedBundle(input, key, output); }