Package com.asakusafw.runtime.io.util

Examples of com.asakusafw.runtime.io.util.VoidOutputStream


                fs.getUri(),
                status.getPath());
        long transferred = 0;
        OutputStream output;
        if (RuntimeContext.get().isSimulation()) {
            output = new VoidOutputStream();
        } else {
            output = fs.create(status.getPath(), true, BUFFER_SIZE);
        }
        try {
            byte[] buf = new byte[256];
View Full Code Here


     * @throws Exception if failed
     */
    @Test
    public void stress_date() throws Exception {
        int count = 5000000;
        CsvEmitter emitter = new CsvEmitter(new VoidOutputStream(), "testing", createConfiguration());
        try {
            DateOption value = new DateOption(new Date(1999, 12, 31));
            for (int i = 0; i < count; i++) {
                emitter.emit(value);
                emitter.endRecord();
View Full Code Here

     * @throws Exception if failed
     */
    @Test
    public void stress_datetime() throws Exception {
        int count = 5000000;
        CsvEmitter emitter = new CsvEmitter(new VoidOutputStream(), "testing", createConfiguration());
        try {
            DateTimeOption value = new DateTimeOption(new DateTime(1999, 12, 31, 1, 23, 45));
            for (int i = 0; i < count; i++) {
                emitter.emit(value);
                emitter.endRecord();
View Full Code Here

TOP

Related Classes of com.asakusafw.runtime.io.util.VoidOutputStream

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.