Sha256: be74549ea0d5059cc893bb3ffc28e13c8bf1205324a0b9fc07d6032935cd6163

Contents?: true

Size: 784 Bytes

Versions: 23

Compression:

Stored size: 784 Bytes

Contents

package org.embulk.spi;

import java.util.List;

public class Page
{
    private final Buffer buffer;
    private List<String> stringReferences;

    protected Page(Buffer buffer)
    {
        this.buffer = buffer;
    }

    public static Page allocate(int length)
    {
        return new Page(Buffer.allocate(length));
    }

    public static Page wrap(Buffer buffer)
    {
        return new Page(buffer);
    }

    public Page setStringReferences(List<String> values)
    {
        this.stringReferences = values;
        return this;
    }

    public String getStringReference(int index)
    {
        return stringReferences.get(index);
    }

    public void release()
    {
        buffer.release();
    }

    public Buffer buffer()
    {
        return buffer;
    }
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
embulk-0.5.5 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.5.4 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.5.3 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.5.2 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.5.1 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.5.0 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.10 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.9 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.8 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.7 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.6 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.5 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.4 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.3 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.2 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.1 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.4.0 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.3.2 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.3.1 embulk-core/src/main/java/org/embulk/spi/Page.java
embulk-0.3.0 embulk-core/src/main/java/org/embulk/spi/Page.java