public class PageReader extends Object implements AutoCloseable
Page
s set with setPage(Page)
.Constructor and Description |
---|
PageReader(Schema schema)
Deprecated.
The constructor is deprecated although Embulk v0.9-compatible plugins still have to use this.
See GitHub Issue #1323: Deprecate PageReader's constructor
for the details.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
getBoolean(Column column) |
boolean |
getBoolean(int columnIndex) |
double |
getDouble(Column column) |
double |
getDouble(int columnIndex) |
Value |
getJson(Column column)
Deprecated.
Use
getJsonValue(org.embulk.spi.Column) instead. |
Value |
getJson(int columnIndex)
Deprecated.
Use
getJsonValue(int) instead. |
JsonValue |
getJsonValue(Column column)
Returns a JSON value at the specified column.
|
JsonValue |
getJsonValue(int columnIndex)
Returns a JSON value at the specified column.
|
long |
getLong(Column column) |
long |
getLong(int columnIndex) |
static int |
getRecordCount(Page page) |
Schema |
getSchema() |
String |
getString(Column column) |
String |
getString(int columnIndex) |
Timestamp |
getTimestamp(Column column)
Deprecated.
Use
getTimestampInstant(Column) instead. |
Timestamp |
getTimestamp(int columnIndex)
Deprecated.
Use
getTimestampInstant(int) instead. |
Instant |
getTimestampInstant(Column column) |
Instant |
getTimestampInstant(int columnIndex) |
boolean |
isNull(Column column) |
boolean |
isNull(int columnIndex) |
boolean |
nextRecord() |
void |
setPage(Page page) |
public PageReader(Schema schema)
PageReader
instance.public static int getRecordCount(Page page)
public void setPage(Page page)
public Schema getSchema()
public boolean isNull(Column column)
public boolean isNull(int columnIndex)
public boolean getBoolean(Column column)
public boolean getBoolean(int columnIndex)
public long getLong(Column column)
public long getLong(int columnIndex)
public double getDouble(Column column)
public double getDouble(int columnIndex)
public String getString(int columnIndex)
@Deprecated public Timestamp getTimestamp(Column column)
getTimestampInstant(Column)
instead.@Deprecated public Timestamp getTimestamp(int columnIndex)
getTimestampInstant(int)
instead.public Instant getTimestampInstant(int columnIndex)
@Deprecated public Value getJson(Column column)
getJsonValue(org.embulk.spi.Column)
instead.msgpack-java
representation.column
- the column to get the JSON valuemsgpack-java
representation@Deprecated public Value getJson(int columnIndex)
getJsonValue(int)
instead.msgpack-java
representation.columnIndex
- the index of the column to get the JSON valuemsgpack-java
representationpublic JsonValue getJsonValue(Column column)
column
- the column to get the JSON valuepublic JsonValue getJsonValue(int columnIndex)
columnIndex
- the index of the column to get the JSON valuepublic boolean nextRecord()
public void close()
close
in interface AutoCloseable