Package com.ebay.erl.mobius.core.model

Examples of com.ebay.erl.mobius.core.model.Column


  {
    Column[] result = new Column[columns.length];
   
    for( int i=0;i<columns.length;i++ )
    {
      result[i] = new Column(ds, columns[i]);
    }
    return result;
  }
View Full Code Here


      {     
        if( this.inputs.length==that.inputs.length )
        {
          for(int i=0;i<this.inputs.length;i++)
          {
            Column c1 = this.inputs[i];
            Column c2 = that.inputs[i];
            if ( !c1.equals(c2) )
            {
              return false;
            }
          }
View Full Code Here

      .addInputPath(new Path(args[1]))
      .setDelimiter(",")
    .build();
   
    this.leftOuterJoin(members, items, "N/A")
      .on(new EQ(new Column(members, "ID"), new Column(items, "BUYER_ID")))
      .save(this, new Path(args[2]),
        new Column(members, "ID"),
        new Column(members, "NAME"),
        new Counts(new Column(items, "ITEM_ID"))
    );
   
    return 0;
  }
View Full Code Here

    BigDecimal expected = BigDecimal.valueOf(Double.MAX_VALUE).add(BigDecimal.valueOf(Double.MAX_VALUE));
   
    Tuple t = new Tuple();
    t.put("COLUMN", Double.MAX_VALUE);
   
    Sum func = new Sum(new Column(ds, "COLUMN"));
    func.reset();
    func.consume(t);
    func.consume(t);
   
    BigDecimal actual = (BigDecimal)func.getComputedResult().get(0);
View Full Code Here

    t3.put("column", Math.abs(Double.MIN_VALUE));
   
    Tuple t4 = new Tuple();
    t4.put("column", -15D);
   
    Sum func = new Sum(new Column(ds, "COLUMN"));
    func.reset();
   
    func.consume(t1);
    func.consume(t2);
    func.consume(t3);
View Full Code Here

   
    this.group(items)
      .by("SELLER_ID")     
      .save(this,
          new Path(output),
          new Column(items, "SELLER_ID"),
          new Counts(new Column(items, "ITEM_ID")),
          new Max(new Column(items, "ITEM_PRICE"))
     
    );
   
   
    return 0;
View Full Code Here

  public void test()
    throws IOException
  {
    Dataset ds = this.createDummyDataset("test", new String[]{"ID"});
   
    Concate func = new Concate(new Column(ds, "ID"), ",");
   
    List<Tuple> tuples    = new ArrayList<Tuple>();
    StringBuffer trueAnswer = new StringBuffer();
    final int max = 50;
    for( int i=0;i<max;i++)
View Full Code Here

    t3.put("C1", a2);
    tuples.add(t3);
   
   
    Dataset ds = this.createDummyDataset("test", new String[]{"C1"});
    Concate func = new Concate(new Column(ds, "C1"));
    func.reset();
    for( Tuple t:tuples )
    {
      func.consume(t);
    }
View Full Code Here

    // validate if the columns in the <code>sorters</code> are
    // all the selected <code>projections</code>.
   
    for( Sorter aSorter:sorters )
    {
      if( !this.projections.contains(new Column(this.aDataset, aSorter.getColumn())) )
      {
        throw new IllegalArgumentException(aSorter.getColumn()+" does not in the projection list, " +
            "please use only columns that are specified in the "+SortProjectionConfigure.class.getSimpleName()+"#select(Column) method.");
      }
    }
View Full Code Here

    throws IOException
  {
    Column[] projections = new Column[columns.length];
    for( int i=0;i<columns.length;i++ )
    {
      projections[i] = new Column(this.aDataset, columns[i]);
    }
   
    JobSetup.validateColumns(aDataset, projections);
    JobSetup.setupProjections(this.conf, aDataset, assignedDatasetID, projections);
    JobSetup.setupInputs(this.conf, aDataset, assignedDatasetID);
View Full Code Here

TOP

Related Classes of com.ebay.erl.mobius.core.model.Column

Copyright © 2018 www.massapicom. 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.