We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public static void main(String[] args) { String createTableSql = "CREATE TABLE tb11\n" + "(id int(11) NOT NULL ,\n" + "a bigint(20) NOT NULL,\n" + "b varchar(64) NOT NULL,\n" + "PRIMARY KEY (id),\n" + "KEY key_a (a))\n" + "ENGINE=InnoDB;"; String ibdFilePath = "/Users/zhangfeng/Desktop/dbtest/tb11.ibd"; try (TableReader reader = new TableReaderImpl(ibdFilePath, createTableSql)) { reader.open(); List recordList = reader.queryByPageNumber(3); for (GenericRecord record : recordList) { Object[] values = record.getValues(); System.out.println(Arrays.asList(values)); assert record.getPrimaryKey() == record.get("id"); RecordHeader header = record.getHeader(); System.out.println("id=" + record.get("id") + ",a=" + record.get("a")+",b=" + record.get("b") +",flag="+header.getInfoFlag()); if (!record.isLeafRecord()) { System.out.println(record.getChildPageNumber()); } }
tb11
id
a
b
key_a
}
无法获取删除的记录,以及delete-marked标记
The text was updated successfully, but these errors were encountered:
是数据量级的原因吗
Sorry, something went wrong.
No branches or pull requests
public static void main(String[] args) {
String createTableSql = "CREATE TABLE
tb11
\n"+ "(
id
int(11) NOT NULL ,\n"+ "
a
bigint(20) NOT NULL,\n"+ "
b
varchar(64) NOT NULL,\n"+ "PRIMARY KEY (
id
),\n"+ "KEY
key_a
(a
))\n"+ "ENGINE=InnoDB;";
String ibdFilePath = "/Users/zhangfeng/Desktop/dbtest/tb11.ibd";
try (TableReader reader = new TableReaderImpl(ibdFilePath, createTableSql)) {
reader.open();
List recordList = reader.queryByPageNumber(3);
for (GenericRecord record : recordList) {
Object[] values = record.getValues();
System.out.println(Arrays.asList(values));
assert record.getPrimaryKey() == record.get("id");
RecordHeader header = record.getHeader();
System.out.println("id=" + record.get("id") + ",a=" + record.get("a")+",b=" + record.get("b") +",flag="+header.getInfoFlag());
if (!record.isLeafRecord()) {
System.out.println(record.getChildPageNumber());
}
}
无法获取删除的记录,以及delete-marked标记
The text was updated successfully, but these errors were encountered: