Search in sources :

Example 6 with AMutableCharArrayString

use of org.apache.asterix.external.classad.AMutableCharArrayString in project asterixdb by apache.

the class FunctionalTester method handle_echo.

/*********************************************************************
     * Function: handle_echo
     * Purpose:
     *********************************************************************/
public static void handle_echo(String line, State state, Parameters parameters) {
    AMutableCharArrayString new_line = new AMutableCharArrayString();
    int index;
    index = 0;
    while (index < line.length() && Character.isWhitespace(line.charAt(index))) {
        index++;
    }
    while (index < line.length()) {
        new_line.appendChar(line.charAt(index));
        index++;
    }
    System.out.println(new_line.toString());
}
Also used : AMutableCharArrayString(org.apache.asterix.external.classad.AMutableCharArrayString) PrettyPrint(org.apache.asterix.external.classad.PrettyPrint)

Aggregations

AMutableCharArrayString (org.apache.asterix.external.classad.AMutableCharArrayString)6 PrettyPrint (org.apache.asterix.external.classad.PrettyPrint)3 ClassAd (org.apache.asterix.external.classad.ClassAd)2 Value (org.apache.asterix.external.classad.Value)2 AMutableDouble (org.apache.asterix.om.base.AMutableDouble)2 AMutableInt64 (org.apache.asterix.om.base.AMutableInt64)2 AMutableString (org.apache.asterix.om.base.AMutableString)2 MutableBoolean (org.apache.commons.lang3.mutable.MutableBoolean)2 TreeSet (java.util.TreeSet)1 AMutableNumberFactor (org.apache.asterix.external.classad.AMutableNumberFactor)1 ClassAdTime (org.apache.asterix.external.classad.ClassAdTime)1 ClassAdUnParser (org.apache.asterix.external.classad.ClassAdUnParser)1 ExprList (org.apache.asterix.external.classad.ExprList)1 ExprTree (org.apache.asterix.external.classad.ExprTree)1 ExprTreeHolder (org.apache.asterix.external.classad.ExprTreeHolder)1 Literal (org.apache.asterix.external.classad.Literal)1 TokenValue (org.apache.asterix.external.classad.TokenValue)1 ClassAdParser (org.apache.asterix.external.library.ClassAdParser)1 AMutableInt32 (org.apache.asterix.om.base.AMutableInt32)1