Package com.netflix.suro.message

Examples of com.netflix.suro.message.StringSerDe


        assertEquals(count, 3000);
    }

    private FileBlockingQueue<String> getFileBlockingQueue() throws IOException {
        return new FileBlockingQueue<String>(
                    tempDir.newFolder().getAbsolutePath(), "default", 3600, new StringSerDe());
    }
View Full Code Here


                new Path(filePath),
                new Configuration());

        Text routingKey = new Text();
        MessageWritable value = new MessageWritable();
        StringSerDe serde = new StringSerDe();

        int i = 0;
        while (r.next(routingKey, value)) {
            assertEquals(routingKey.toString(), "routingKey");
            assertEquals(serde.deserialize(value.getMessage().getPayload()), message + i);
            ++i;
        }
        r.close();

        return i;
View Full Code Here

TOP

Related Classes of com.netflix.suro.message.StringSerDe

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.