GT-3294 Added support for DB FixedField with improved indexing.

This commit is contained in:
ghidra1
2020-02-24 18:02:01 -05:00
parent 14d4c87ef4
commit fcb3151f94
224 changed files with 9574 additions and 7913 deletions

View File

@@ -600,7 +600,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
DBHandle dbh = new DBHandle();
long id = dbh.startTransaction();
dbh.createTable("test",
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
dbh.endTransaction(id, true);
BufferFile bf =
fs.createDatabase("/abc", "fred", null, "Database", dbh.getBufferSize(), "bob", null);
@@ -741,7 +741,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
DBHandle dbh = new DBHandle();
long id = dbh.startTransaction();
dbh.createTable("test",
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
dbh.endTransaction(id, true);
BufferFile bf =
fs.createDatabase("/abc", "greg", "123", "Database", dbh.getBufferSize(), "test", null);
@@ -789,7 +789,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
DBHandle dbh = new DBHandle();
long id = dbh.startTransaction();
dbh.createTable("test",
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
dbh.endTransaction(id, true);
BufferFile bf =
fs.createDatabase("/abc", "greg", "123", "Database", dbh.getBufferSize(), "test", null);
@@ -933,7 +933,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
DBHandle dbh = new DBHandle();
long id = dbh.startTransaction();
dbh.createTable("test",
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
dbh.endTransaction(id, true);
BufferFile bf = fs.createDatabase(folderPath, itemName, fileId, "Database",
dbh.getBufferSize(), "test", null);

View File

@@ -35,9 +35,10 @@ public class RecoveryDBTest extends AbstractGenericTest {
private static int RECORD_COUNT = 1000;
private static Schema SCHEMA =
new Schema(1, "key", new Class[] { StringField.class }, new String[] { "field1" });
new Schema(1, "key", new Field[] { StringField.INSTANCE }, new String[] { "field1" });
private static final File testDir = new File(AbstractGenericTest.getTestDirectoryPath(), "test");
private static final File testDir =
new File(AbstractGenericTest.getTestDirectoryPath(), "test");
private LocalFileSystem fileSystem;

View File

@@ -33,7 +33,7 @@ import utilities.util.FileUtilities;
public class PackedDatabaseTest extends AbstractGenericTest {
private static final Schema TEST_SCHEMA =
new Schema(1, "Key", new Class[] { StringField.class }, new String[] { "Col1" });
new Schema(1, "Key", new Field[] { StringField.INSTANCE }, new String[] { "Col1" });
private File packedDbFile;
private PackedDatabase db;