Codota Logo
DoWhileOperator
Code IndexAdd Codota to your IDE (free)

How to use
DoWhileOperator
in
org.qcri.rheem.basic.operators

Best Java code snippets using org.qcri.rheem.basic.operators.DoWhileOperator (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.qcri.rheem/rheem-basic

public void outputConnectTo(Operator outputOperator, int thatInputIndex) {
  this.connectTo(FINAL_OUTPUT_INDEX, outputOperator, thatInputIndex);
}
origin: org.qcri.rheem/rheem-basic

/**
 * Creates a copy of the given {@link LoopOperator}.
 *
 * @param that should be copied
 */
public DoWhileOperator(DoWhileOperator<InputType, ConvergenceType> that) {
  super(that);
  this.criterionDescriptor = that.getCriterionDescriptor();
  this.numExpectedIterations = that.getNumExpectedIterations();
  this.state = that.getState();
  this.initializeSlots(that.getInputType(), that.getConvergenceType());
}
origin: org.qcri.rheem/rheem-basic

@Override
public Collection<InputSlot<?>> getLoopBodyInputs() {
  return Arrays.asList(this.getInput(ITERATION_INPUT_INDEX), this.getInput(CONVERGENCE_INPUT_INDEX));
}
origin: org.qcri.rheem/rheem-java

@SuppressWarnings("unchecked")
private SubplanPattern createSubplanPattern() {
  final OperatorPattern operatorPattern = new OperatorPattern(
      "loop", new DoWhileOperator<>(DataSetType.none(), DataSetType.none(), (PredicateDescriptor) null, 1), false);
  return SubplanPattern.createSingleton(operatorPattern);
}
origin: org.qcri.rheem/rheem-basic

@Override
public Collection<OutputSlot<?>> getForwards(InputSlot<?> input) {
  assert this.isOwnerOf(input);
  switch (input.getIndex()) {
    case INITIAL_INPUT_INDEX:
    case ITERATION_INPUT_INDEX:
      return Arrays.asList(this.getOutput(ITERATION_OUTPUT_INDEX), this.getOutput(FINAL_OUTPUT_INDEX));
    default:
      return super.getForwards(input);
  }
}
origin: org.qcri.rheem/rheem-basic

@Override
public Collection<OutputSlot<?>> getLoopBodyOutputs() {
  return Collections.singletonList(this.getOutput(ITERATION_OUTPUT_INDEX));
}
origin: org.qcri.rheem/rheem-basic

/**
 * Creates a new instance.
 */
public DoWhileOperator(DataSetType<InputType> inputType,
            DataSetType<ConvergenceType> convergenceType,
            PredicateDescriptor<Collection<ConvergenceType>> criterionDescriptor,
            Integer numExpectedIterations) {
  super(3, 2, true);
  this.criterionDescriptor = criterionDescriptor;
  this.numExpectedIterations = numExpectedIterations;
  this.state = State.NOT_STARTED;
  this.initializeSlots(inputType, convergenceType);
}
origin: org.qcri.rheem/rheem-spark

private SubplanPattern createSubplanPattern() {
  final OperatorPattern operatorPattern = new OperatorPattern(
      "loop", new DoWhileOperator<>(DataSetType.none(), DataSetType.none(), (PredicateDescriptor) null, 1), false
  );
  return SubplanPattern.createSingleton(operatorPattern);
}
origin: org.qcri.rheem/rheem-basic

@Override
public Collection<OutputSlot<?>> getFinalLoopOutputs() {
  return Collections.singletonList(this.getOutput(FINAL_OUTPUT_INDEX));
}
origin: org.qcri.rheem/rheem-basic

@Override
public Collection<InputSlot<?>> getConditionInputSlots() {
  return Collections.singletonList(this.getInput(CONVERGENCE_INPUT_INDEX));
}
origin: org.qcri.rheem/rheem-basic

public void beginIteration(Operator beginOperator, int beginInputIndex) {
  this.connectTo(ITERATION_OUTPUT_INDEX, beginOperator, beginInputIndex);
}
origin: org.qcri.rheem/rheem-basic

@Override
public Collection<InputSlot<?>> getLoopInitializationInputs() {
  return Collections.singletonList(this.getInput(INITIAL_INPUT_INDEX));
}
origin: org.qcri.rheem/rheem-basic

@SuppressWarnings("unchecked")
public DataSetType<ConvergenceType> getConvergenceType() {
  return ((InputSlot<ConvergenceType>) this.getInput(CONVERGENCE_INPUT_INDEX)).getType();
}
origin: org.qcri.rheem/rheem-basic

@SuppressWarnings("unchecked")
public DataSetType<InputType> getInputType() {
  return ((InputSlot<InputType>) this.getInput(INITIAL_INPUT_INDEX)).getType();
}
org.qcri.rheem.basic.operatorsDoWhileOperator

Javadoc

This operator has three inputs and two outputs.

Most used methods

  • <init>
    Creates a new instance.
  • connectTo
  • getConvergenceType
  • getCriterionDescriptor
  • getInput
  • getInputType
  • getNumExpectedIterations
  • getOutput
  • getState
  • initializeSlots
  • isOwnerOf
  • isOwnerOf

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • onCreateOptionsMenu (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now