Examples of Value


Examples of test.text.Value

        String data = new String(msg.getData());
        String content = (String)msg.getMimeMessage().getContent();
        assertTrue(content.contains("<value>abc</value>"));
        assertTrue(data.contains("Content-Type: text/html;charset=UTF-8"));
        System.out.println("data = " + data);
        assertEquals(Arrays.<Object>asList(new Value("abc")), Commands.list);
      }
    };
    support.doTest();
  }
View Full Code Here

Examples of water.Value

  // Version&Schema-specific filling into the impl
  @Override public FindPojo createImpl() {
    FindPojo f = new FindPojo();
    // Peel out the Frame from the Key
    Value val = DKV.get(key);
    if( val == null ) throw new IllegalArgumentException("Key not found");
    if( !val.isFrame() ) throw new IllegalArgumentException("Not a Frame");
    Frame fr = val.get();

    // Peel out an optional column; restrict to this column
    if( column != null ) {
      Vec vec = fr.vec(column);
      if( vec==null ) throw new IllegalArgumentException("Column "+column+" not found in frame "+key);
View Full Code Here

Examples of wycs.core.Value

    // TODO: actually implement some or all coercions?
    branch.write(code.target(), result, code.assignedType());
  }

  protected void transform(Codes.Const code, VcBranch branch) {
    Value val = convert(code.constant, branch.entry());
    branch.write(code.target(), new Expr.Constant(val, branch.entry()
        .attributes()), code.assignedType());
  }
View Full Code Here

Examples of wyvern.tools.typedAST.interfaces.Value

    writer.writeArgs(function, env);
  }

  @Override
  public Value evaluateApplication(Application app, Environment argEnv) {
    Value argValue = app.getArgument().evaluate(argEnv);
    Environment bodyEnv = env;
    List<NameBinding> bindings = function.getArgBindings();
    if (bindings.size() == 1)
      bodyEnv = bodyEnv.extend(new ValueBinding(bindings.get(0).getName(), argValue));
    else if (bindings.size() > 1 && argValue instanceof TupleValue)
View Full Code Here

Examples of xbird.storage.index.Value

        Random random = new Random(54552542345L);
        StopWatch sw1 = new StopWatch("[BplusTreeUniq] Index Construction of " + REPEAT);
        for(int i = 0; i < REPEAT; i++) {
            long v = random.nextLong();
            byte[] b = Primitives.toBytes(v);
            Value k = new Value(b);
            Assert.assertTrue(btree.addValue(k, v) == -1);
            list.add(b);
        }
        System.err.println(sw1);
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.