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