public class PageBuilder extends Object implements AutoCloseable
Constructor and Description |
---|
PageBuilder(BufferAllocator allocator,
Schema schema,
PageOutput output)
Deprecated.
The constructor is deprecated although Embulk v0.9-compatible plugins still have to use this.
See GitHub Issue #1321: Deprecate PageBuilder's constructor
for the details.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecord() |
void |
close() |
void |
finish() |
void |
flush() |
Schema |
getSchema() |
void |
setBoolean(Column column,
boolean value) |
void |
setBoolean(int columnIndex,
boolean value) |
void |
setDouble(Column column,
double value) |
void |
setDouble(int columnIndex,
double value) |
void |
setJson(Column column,
JsonValue value)
Sets a JSON value at the specified column.
|
void |
setJson(Column column,
org.msgpack.value.Value value)
Deprecated.
|
void |
setJson(int columnIndex,
JsonValue value)
Sets a JSON value at the specified column.
|
void |
setJson(int columnIndex,
org.msgpack.value.Value value)
Deprecated.
Use
setJson(int, org.embulk.spi.json.JsonValue) instead. |
void |
setLong(Column column,
long value) |
void |
setLong(int columnIndex,
long value) |
void |
setNull(Column column) |
void |
setNull(int columnIndex) |
void |
setString(Column column,
String value) |
void |
setString(int columnIndex,
String value) |
void |
setTimestamp(Column column,
Instant value) |
void |
setTimestamp(Column column,
Timestamp value)
Deprecated.
|
void |
setTimestamp(int columnIndex,
Instant value) |
void |
setTimestamp(int columnIndex,
Timestamp value)
Deprecated.
|
@Deprecated public PageBuilder(BufferAllocator allocator, Schema schema, PageOutput output)
PageBuilder
instance.public Schema getSchema()
public void setNull(Column column)
public void setNull(int columnIndex)
public void setBoolean(Column column, boolean value)
public void setBoolean(int columnIndex, boolean value)
public void setLong(Column column, long value)
public void setLong(int columnIndex, long value)
public void setDouble(Column column, double value)
public void setDouble(int columnIndex, double value)
public void setString(int columnIndex, String value)
@Deprecated public void setJson(Column column, org.msgpack.value.Value value)
setJson(org.embulk.spi.Column, org.embulk.spi.json.JsonValue)
instead.msgpack-java
representation.column
- the column to set the JSON valuevalue
- the JSON value in the msgpack-java
representationpublic void setJson(Column column, JsonValue value)
column
- the column to set the JSON valuevalue
- the JSON value@Deprecated public void setJson(int columnIndex, org.msgpack.value.Value value)
setJson(int, org.embulk.spi.json.JsonValue)
instead.msgpack-java
representation.columnIndex
- the index of the column to set the JSON valuevalue
- the JSON value in the msgpack-java
representationpublic void setJson(int columnIndex, JsonValue value)
columnIndex
- the index of the column to set the JSON valuevalue
- the JSON value@Deprecated public void setTimestamp(Column column, Timestamp value)
@Deprecated public void setTimestamp(int columnIndex, Timestamp value)
public void setTimestamp(int columnIndex, Instant value)
public void addRecord()
public void flush()
public void finish()
public void close()
close
in interface AutoCloseable