Package org.gridgain.grid.ggfs.mapreduce.records

Examples of org.gridgain.grid.ggfs.mapreduce.records.GridGgfsNewLineRecordResolver


     */
    public void assertSplit(long suggestedStart, long suggestedLen, long expStart, long expLen, byte[] data)
        throws Exception {
        write(data);

        GridGgfsNewLineRecordResolver rslvr = resolver();

        GridGgfsFileRange split;

        try (GridGgfsInputStream is = read()) {
            split = rslvr.resolveRecords(ggfs, is, split(suggestedStart, suggestedLen));
        }

        assert split != null : "Split is null.";
        assert split.start() == expStart : "Incorrect start [expected=" + expStart + ", actual=" + split.start() + ']';
        assert split.length() == expLen : "Incorrect length [expected=" + expLen + ", actual=" + split.length() + ']';
View Full Code Here


     */
    public void assertSplitNull(long suggestedStart, long suggestedLen, byte[] data)
        throws Exception {
        write(data);

        GridGgfsNewLineRecordResolver rslvr = resolver();

        GridGgfsFileRange split;

        try (GridGgfsInputStream is = read()) {
            split = rslvr.resolveRecords(ggfs, is, split(suggestedStart, suggestedLen));
        }

        assert split == null : "Split is not null.";
    }
View Full Code Here

TOP

Related Classes of org.gridgain.grid.ggfs.mapreduce.records.GridGgfsNewLineRecordResolver

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.