Sha256: 4f1f8502e908ab778d63fdc3cc00bba130b14b4743445b6e566e40c34d2cdef6

Contents?: true

Size: 879 Bytes

Versions: 29

Compression:

Stored size: 879 Bytes

Contents

package org.embulk.output.td.writer;

import org.embulk.output.td.MsgpackGZFileBuilder;
import org.embulk.spi.Column;
import org.embulk.spi.PageReader;

import java.io.IOException;

public class UnixTimestampFieldDuplicator
        implements IFieldWriter
{
    private final IFieldWriter nextWriter;
    private final UnixTimestampLongFieldWriter timeFieldWriter;

    public UnixTimestampFieldDuplicator(IFieldWriter nextWriter, String duplicateKeyName, int fractionUnit)
    {
        this.nextWriter = nextWriter;
        timeFieldWriter = new UnixTimestampLongFieldWriter(duplicateKeyName, fractionUnit);
    }

    public void writeKeyValue(MsgpackGZFileBuilder builder, PageReader reader, Column column)
            throws IOException
    {
        nextWriter.writeKeyValue(builder, reader, column);
        timeFieldWriter.writeKeyValue(builder, reader, column);
    }
}

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
embulk-output-td-0.3.2 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.3.1 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.3.0 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.2.2 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.2.1 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.2.0 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.1.8 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.1.7 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java
embulk-output-td-0.1.6 src/main/java/org/embulk/output/td/writer/UnixTimestampFieldDuplicator.java