public static Object[] toObjects(final PageReader record, final boolean useInstant, final boolean useJsonValue) {
        final Object[] values = new Object[record.getSchema().getColumns().size()];
        record.getSchema().visitColumns(new ObjectColumnVisitor(record, useInstant, useJsonValue) {
                @Override
                public void visit(Column column, Object object) {
                    values[column.getIndex()] = object;
                }
            });
        return values;
    }
A utility class to manupulate {@link org.embulk.spi.Page}s.

@deprecated Use {@link org.embulk.spi.PageReader} directly.
embulk-core/src/main/java/org/embulk/spi/util/Pages.java