Package cascading.scheme

Examples of cascading.scheme.SinkCall


        // expect a tuple holding one field - chararray or bytearray
        Assert.isTrue(from instanceof SinkCall,
                String.format("Unexpected object type, expecting [%s], given [%s]", SinkCall.class, from.getClass()));

        // handle common cases
        SinkCall sinkCall = (SinkCall) from;
        Tuple rawTuple = sinkCall.getOutgoingEntry().getTuple();

        if (rawTuple == null || rawTuple.isEmpty()) {
            to.bytes("{}");
            return;
        }
View Full Code Here


        // expect a tuple holding one field - chararray or bytearray
        Assert.isTrue(from instanceof SinkCall,
                String.format("Unexpected object type, expecting [%s], given [%s]", SinkCall.class, from.getClass()));

        // handle common cases
        SinkCall sinkCall = (SinkCall) from;
        Tuple rawTuple = sinkCall.getOutgoingEntry().getTuple();

        if (rawTuple == null || rawTuple.isEmpty()) {
            to.bytes("{}");
            return;
        }
View Full Code Here

TOP

Related Classes of cascading.scheme.SinkCall

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.