Examples of Tuple


Examples of org.springframework.xd.tuple.Tuple

    this.context.addPropertyAccessor(new TuplePropertyAccessor());
  }

  @Test
  public void testSimplePropertyByFieldName() {
    Tuple tuple = TupleBuilder.tuple().of("foo", "bar");
    String result = evaluate("foo", tuple, String.class);
    assertEquals("bar", result);
  }
View Full Code Here

Examples of org.sumus.dwh.datastore.Tuple

    private void addTupleInCube(String path, ArrayList<String> arrayfiles) throws IOException {
        ReaderFile readerfile;
        AfferenceCoupling afferencecoupling;
        State state;
        Tuple factShip;
        readerfile = new ReaderFile(path);
        afferencecoupling = new AfferenceCoupling(arrayfiles, readerfile);
       
        Context context = buildPackageContext();
        state = buildPackageState(readerfile, afferencecoupling);
        factShip = new Tuple(getCube(DataStoreDefinition.PACKAGE_CUBE), context, state);
        add(factShip);
       
        context = buildClassContext();
        state = buildClassState(readerfile, afferencecoupling);
        factShip = new Tuple(getCube(DataStoreDefinition.CLASS_CUBE), context, state);
        add(factShip);
       
        context = buildMethodContext();
        state = buildMethodState(readerfile);
        factShip = new Tuple(getCube(DataStoreDefinition.METHOD_CUBE), context, state);
        add(factShip);
    }
View Full Code Here

Examples of org.tarantool.core.Tuple

   * @return a {@link org.tarantool.core.Tuple} object.
   */
  public Tuple delete(int spaceNum, Tuple t) {
    Space space = spaces.get(spaceNum);

    Tuple stored = space.get(t);
    if (stored != null) {
      for (Index key : space.indexes.values()) {
        key.remove(stored);
      }
    }
View Full Code Here

Examples of org.yinwang.yin.ast.Tuple

                            next.toString() + " does not close " + first.toString(), next);
                } else {
                    elements.add(next);
                }
            }
            return new Tuple(elements, first, next, first.file, first.start, next.end, first.line, first.col);
        } else if (depth == 0 && Delimeter.isClose(first)) {
            throw new ParserException("unmatched closing delimeter: " + first.toString() +
                    " does not close any open delimeter", first);
        } else {
            return first;
View Full Code Here

Examples of pierre.reports.Tuple

    final Collection tuples = new ArrayList();
   
    for( Iterator iterator = tupleMaps.iterator(); iterator.hasNext(); )
    {
      nameToValue = (Map)iterator.next();
      final Tuple tuple = new Tuple();
      tuples.add( tuple );
     
      tuple.setRecordClassName( recordClassName );
      tuple.setTitle( title );
      tuple.setAttributeNames( attributeNames );

      for( Iterator iterator2 = nameToValue.entrySet().iterator(); iterator2.hasNext(); )
      {
        final Map.Entry entry = (Map.Entry)iterator2.next();
        tuple.setValue( (String)entry.getKey(), entry.getValue() );
      }
    }
   
    return (Tuple[])tuples.toArray( new Tuple[ tuples.size() ] );
  }
View Full Code Here

Examples of pl.net.bluesoft.util.lang.Tuple

            descr = state.getName();
          }
        }
        items.add(new Pair<String, Tuple>(
            descr,
            new Tuple(processDefinition.getProcessName(), state.getName())
        ));
      }
    }
    items = orderByFirst(items);
    dialog.setAvailableItems(items);
    dialog.setItems(from(getCurrentlySelectedStates()).select(new F<ProcessStateConfiguration, Tuple>() {
      @Override
      public Tuple invoke(ProcessStateConfiguration x) {
        return new Tuple(x.getDefinition().getProcessName(), x.getName());
      }
    }).toSet());
    dialog.show(getApplication());
  }
View Full Code Here

Examples of prefuse.data.Tuple

  public static Table copyTable(Table oldTable) {
    Schema oldSchema = oldTable.getSchema();
    Table newTable = oldSchema.instantiate();
   
    for (Iterator rowIt = oldTable.tuples(); rowIt.hasNext();) {
      Tuple row = (Tuple) rowIt.next();     
      newTable.addTuple(row);
    }   
   
    return newTable;
  }
View Full Code Here

Examples of redis.clients.jedis.Tuple

  jedis.zadd("foo", 10d, "b");
  jedis.zadd("foo", 0.1d, "c");
  jedis.zadd("foo", 2d, "a");

  Set<Tuple> expected = new LinkedHashSet<Tuple>();
  expected.add(new Tuple("c", 0.1d));
  expected.add(new Tuple("a", 2d));

  Set<Tuple> range = jedis.zrangeWithScores("foo", 0, 1);
  assertEquals(expected, range);

  expected.add(new Tuple("b", 10d));
  range = jedis.zrangeWithScores("foo", 0, 100);
  assertEquals(expected, range);

  // Binary
  jedis.zadd(bfoo, 1d, ba);
  jedis.zadd(bfoo, 10d, bb);
  jedis.zadd(bfoo, 0.1d, bc);
  jedis.zadd(bfoo, 2d, ba);

  Set<Tuple> bexpected = new LinkedHashSet<Tuple>();
  bexpected.add(new Tuple(bc, 0.1d));
  bexpected.add(new Tuple(ba, 2d));

  Set<Tuple> brange = jedis.zrangeWithScores(bfoo, 0, 1);
  assertEquals(bexpected, brange);

  bexpected.add(new Tuple(bb, 10d));
  brange = jedis.zrangeWithScores(bfoo, 0, 100);
  assertEquals(bexpected, brange);

    }
View Full Code Here

Examples of uk.org.ogsadai.tuple.Tuple

        {
            TupleInputStream tuples = new TupleInputStream(input);
            writer.write(new MetadataWrapper(tuples.readTupleMetadata()));
            while (true)
            {
                Tuple tuple = tuples.readTuple();
                writer.write(tuple);
            }
        }
        catch (EOFException e)
        {
View Full Code Here

Examples of wyvern.tools.types.extensions.Tuple

          return ((Intersection)exp).getTypes().stream().filter(tpe -> tpe instanceof Tuple).filter(tpe -> ((Tuple)tpe).getTypeArray().length == objects.length).findFirst().get();
        ToolError.reportError(ErrorMessage.ACTUAL_FORMAL_TYPE_MISMATCH, this, getType().toString(), exp.toString());
        throw new RuntimeException();
      }));
    }
    return new Tuple(newTypes);
  }
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.