Package uk.org.ogsadai.tuple

Examples of uk.org.ogsadai.tuple.ColumnMetadata


        TupleListIterator tuples = (TupleListIterator)iterationData[1];
        Open(tuples);
        try
        {
            List columns = new ArrayList();
            ColumnMetadata col = new SimpleColumnMetadata("groupID", TupleTypes._STRING, 0, 0, 0);
            columns.add(col);
            col = new SimpleColumnMetadata("groupID", TupleTypes._DOUBLE, 0, 0, 0);
            columns.add(col);
            TupleMetadata metadata = new SimpleTupleMetadata(columns);
            MetadataWrapper wrapper = new MetadataWrapper(metadata);
View Full Code Here


        Tuple tuple;
        try
        {
            mOutput.write(ControlBlock.LIST_BEGIN);
            List columns = new ArrayList();
            ColumnMetadata col0 = new SimpleColumnMetadata("groupID", TupleTypes._STRING, 0, 0, 0);
            columns.add(col0);
            ColumnMetadata col1 = new SimpleColumnMetadata("groupID", TupleTypes._OBJECT, 0, 0, 0);
            columns.add(col1);
            TupleMetadata metadata = new SimpleTupleMetadata(columns);
            MetadataWrapper wrapper = new MetadataWrapper(metadata);
            mOutput.write(wrapper);
            while ((tuple = Next(tuples)) != null)
View Full Code Here

       
        Tuple tuple;
        try
        {
            List columns = new ArrayList();
            ColumnMetadata col = new SimpleColumnMetadata("groupID", TupleTypes._STRING, 0, 0, 0);
            columns.add(col);
            TupleMetadata metadata = new SimpleTupleMetadata(columns);
            MetadataWrapper wrapper = new MetadataWrapper(metadata);
           
            mOutput.write(ControlBlock.LIST_BEGIN);
View Full Code Here

                || linearIndex < 0)
        {
            throw new ActivityUserException(
                    new ColumnNotFoundException(linearIndex));
        }
        ColumnMetadata col = metadata.getColumnMetadata(linearIndex);
        if (col.getType() != TupleTypes._DOUBLE
                && col.getType() != TupleTypes._FLOAT
                && col.getType() != TupleTypes._LONG
                && col.getType() != TupleTypes._INT
                && col.getType() != TupleTypes._SHORT)
        {
            throw new ActivityUserException(
                    new Exception("Cannot filter non-numeric columns."));
        }
    }
View Full Code Here

    Tuple tuple;
    try
    {
        mOutput.write(ControlBlock.LIST_BEGIN);
        List columns = new ArrayList();
        ColumnMetadata col0 = new SimpleColumnMetadata("ID", TupleTypes._STRING, 0, 0, 0);
        columns.add(col0);
        ColumnMetadata col1 = new SimpleColumnMetadata("ITEMS", TupleTypes._STRING, 0, 0, 0);
        columns.add(col1);
        TupleMetadata metadata = new SimpleTupleMetadata(columns);
        MetadataWrapper wrapper = new MetadataWrapper(metadata);
        mOutput.write(wrapper);
        while ((tuple = Next(tuples)) != null)
View Full Code Here

        TupleListIterator tuples1 = (TupleListIterator)iterationData[0];
        TupleListIterator tuples2 = (TupleListIterator)iterationData[1];
        try
        {
            List columns = new ArrayList();
            ColumnMetadata col = new SimpleColumnMetadata("row", TupleTypes._STRING, 0, 0, 0);
            columns.add(col);
            TupleMetadata metadata = new SimpleTupleMetadata(columns);
            MetadataWrapper wrapper = new MetadataWrapper(metadata);
           
            mOutput.write(ControlBlock.LIST_BEGIN);
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.tuple.ColumnMetadata

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.