Examples of Concat


Examples of ch.lambdaj.function.aggregate.Concat

            String[] content = FileUtils.fileRead( logFile ).split( "\n" );
            if ( content.length > lines )
            {
                content = Arrays.copyOfRange( content, content.length - lines, content.length - 1 );
            }
            return "Full log at: " + logFile + "\n" + Lambda.aggregate( content, new Concat( "\n" ) ).toString();
        }
        catch ( IOException e )
        {
            // ignore
            return "(Error reading log contents: " + e.getMessage() + "): " + logFile;
View Full Code Here

Examples of client.net.sf.saxon.ce.functions.Concat

        // otherwise, return an expression that concatenates the components
       
        Expression[] args = new Expression[components.size()];
        components.toArray(args);
        Concat fn = (Concat) SystemFunction.makeSystemFunction("concat", args);
        fn.setSourceLocator(sourceLocator);
        return visitor.simplify(fn);

    }
View Full Code Here

Examples of it.stefanobertini.zebra.cpcl.labelmode.Concat

public class ConcatTest {

    @Test
    public void test() {
  Concat command = new Concat(Orientation.horizontal, new Position(1, 2));
  command.addText(new Font("3", 4), 5, "First line");
  command.addText(new Font("7", 8), 9, "Second line");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("CONCAT 1 2");
  output.printLn("3 4 5 First line");
  output.printLn("7 8 9 Second line");
View Full Code Here

Examples of net.sf.jsqlparser.expression.operators.arithmetic.Concat

        jj_la1[101] = jj_gen;
        break label_20;
      }
      jj_consume_token(91);
      rightExpression = AdditiveExpression();
                        Concat binExp = new Concat();
                        binExp.setLeftExpression(leftExpression);
                        binExp.setRightExpression(rightExpression);
                        result = binExp;
                        leftExpression = result;
    }
      {if (true) return result;}
    throw new Error("Missing return statement in function");
View Full Code Here

Examples of net.sf.jsqlparser.expression.operators.arithmetic.Concat

    String sql = "select a,b,c from test";
    Select select = (Select) parserManager.parse(new StringReader(sql));
    ConnectExpressionsVisitor instance = new ConnectExpressionsVisitor() {
      @Override
      protected BinaryExpression createBinaryExpression() {
        return new Concat();
      }
    };
    select.getSelectBody().accept(instance);

    assertEquals("SELECT a || b || c AS expr FROM test", select.toString());
View Full Code Here

Examples of net.sf.saxon.functions.Concat

        // otherwise, return an expression that concatenates the components
       
        Expression[] args = new Expression[components.size()];
        components.toArray(args);
        Concat fn = (Concat) SystemFunction.makeSystemFunction("concat", args);
        fn.setLocationId(env.getLocationMap().allocateLocationId(env.getSystemId(), lineNumber));
        return visitor.simplify(fn);

    }
View Full Code Here

Examples of net.sf.saxon.functions.Concat

            return ((Expression) components.get(0)).simplify(env);
        }

        // otherwise, return an expression that concatenates the components

        Concat fn = (Concat) SystemFunction.makeSystemFunction("concat", env.getNamePool());
        Expression[] args = new Expression[components.size()];
        components.toArray(args);
        fn.setArguments(args);
        fn.setLocationId(env.getLocationMap().allocateLocationId(env.getSystemId(), lineNumber));
        return fn.simplify(env);

    }
View Full Code Here

Examples of net.sf.saxon.functions.Concat

        // otherwise, return an expression that concatenates the components
       
        Expression[] args = new Expression[components.size()];
        components.toArray(args);
        Concat fn = (Concat) SystemFunction.makeSystemFunction("concat", args);
        fn.setLocationId(env.getLocationMap().allocateLocationId(env.getSystemId(), lineNumber));
        return visitor.simplify(fn);

    }
View Full Code Here

Examples of org.apache.pig.builtin.CONCAT

        byte[] expected = {1,2,3,4,5,6};
        DataByteArray dbaExpected = new DataByteArray(expected);
       
        DataByteArray dbaA = new DataByteArray(a);
        DataByteArray dbaB = new DataByteArray(b);
        EvalFunc<DataByteArray> concat = new CONCAT();
       
        Tuple t = TupleFactory.getInstance().newTuple(2);
        t.set(0, dbaA);
        t.set(1, dbaB);
        DataByteArray result = concat.exec(t);
        String msg = "[Testing CONCAT on input type: bytearray]";
        assertTrue(msg, result.equals(dbaExpected));
       
        // String concat
        String s1 = "unit ";
View Full Code Here

Examples of org.apache.pig.builtin.CONCAT

        DataByteArray dbaB = new DataByteArray(b);
        DataByteArray dbaC = new DataByteArray(c);
        DataByteArray dbaD = new DataByteArray(d);
        DataByteArray dbaE = new DataByteArray(e);

        EvalFunc<DataByteArray> concat = new CONCAT();

        Tuple t = TupleFactory.getInstance().newTuple(5);
        t.set(0, dbaA);
        t.set(1, dbaB);
        t.set(2, dbaC);
        t.set(3, dbaD);
        t.set(4, dbaE);

        DataByteArray result = concat.exec(t);
        String msg = "[Testing CONCAT on >2 tuples for input type: bytearray]";
        assertTrue(msg, result.equals(dbaExpected));

        // String concat
        String s1 = "high ";
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.