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) |
org.msgpack.value.Value |
getJson(Column column) |
org.msgpack.value.Value |
getJson(int columnIndex) |
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)
public org.msgpack.value.Value getJson(Column column)
public org.msgpack.value.Value getJson(int columnIndex)
public boolean nextRecord()
public void close()
close
in interface AutoCloseable