Examples of force()


Examples of org.elasticsearch.action.admin.indices.refresh.RefreshRequest.force()

    List<RefreshRequest> requests = refreshAction.call();
    assertThat(requests).hasSize(1);

    RefreshRequest request = requests.get(0);
    assertThat(request.indices()).containsOnly(TEST_INDEX.getIndexName());
    assertThat(request.force()).isFalse();
  }
}
View Full Code Here

Examples of org.grouplens.lenskit.eval.EvalConfig.force()

        // config file is proper default
        assertThat(opts.getScriptFile(),
                   equalTo(new File("eval.groovy")));

        EvalConfig cfg = new EvalConfig(opts.getProperties());
        assertThat(cfg.force(), equalTo(false));
        assertThat(cfg.getThreadCount(), equalTo(1));
    }

    @Test
    public void testForce() {
View Full Code Here

Examples of org.hibernate.annotations.DiscriminatorOptions.force()

        : null;
    entityBinder.setDiscriminatorValue( discriminatorValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

Examples of org.hibernate.annotations.DiscriminatorOptions.force()

        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

Examples of org.hibernate.annotations.DiscriminatorOptions.force()

        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

Examples of org.hibernate.annotations.DiscriminatorOptions.force()

        null;
    entityBinder.setDiscriminatorValue( discrimValue );

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

Examples of org.hibernate.annotations.DiscriminatorOptions.force()

      entityBinder.setForceDiscriminator( true );
    }

    DiscriminatorOptions discriminatorOptions = clazzToProcess.getAnnotation( DiscriminatorOptions.class );
    if ( discriminatorOptions != null) {
      entityBinder.setForceDiscriminator( discriminatorOptions.force() );
      entityBinder.setInsertableDiscriminator( discriminatorOptions.insert() );
    }

    return discriminatorColumn;
  }
View Full Code Here

Examples of org.renjin.sexp.SEXP.force()

  }

  private SEXP getValue(Environment env, String name) {
    SEXP value = env.getVariable(name);
    if(value instanceof Promise) {
      value = value.force(topLevelContext);
    }
    return value;
  }

  @Test
View Full Code Here

Examples of org.renjin.sexp.SEXP.force()

  protected SEXP doEval(Context context) {
    SEXP value = environment.findVariable((Symbol)expression);
    if(value == Symbol.UNBOUND_VALUE) {
      throw new EvalException("object '" + expression + "' not found");
    }
    return value.force(context);
  }
 
}
View Full Code Here

Examples of org.renjin.sexp.SEXP.force()

  public Object retrieveValue(Context context, Object[] temps) {
    SEXP value = context.getEnvironment().findVariable(name);
    if(value == Symbol.UNBOUND_VALUE) {
      throw new EvalException("object '" + name + "' not found");
    }
    return value.force(context);
  }
 
  @Override
  public void setValue(Context context, Object[] temp, Object value) {
    context.getEnvironment().setVariable(name, (SEXP)value);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.