|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.test.TestBase
org.h2.test.unit.TestDataPage
public class TestDataPage
Data page tests.
| Field Summary |
|---|
| Fields inherited from class org.h2.test.TestBase |
|---|
baseDir, config, start |
| Constructor Summary | |
|---|---|
TestDataPage()
|
|
| Method Summary | |
|---|---|
int |
allocateObjectId(boolean b,
boolean c)
Get the next object id. |
void |
checkPowerOff()
Check if the simulated power failure occurred. |
void |
checkWritingAllowed()
Check if writing is allowed. |
int |
compareTypeSave(Value a,
Value b)
Compare two values. |
java.lang.String |
createTempFile()
Create a temporary file and return the file name. |
void |
freeUpDiskSpace()
Free up disk space if possible. |
int |
getChecksum(byte[] data,
int start,
int end)
Calculate the checksum for the byte array. |
java.lang.String |
getDatabasePath()
Get the database path. |
java.lang.String |
getLobCompressionAlgorithm(int type)
Get the compression algorithm used for large objects. |
SmallLRUCache<java.lang.String,java.lang.String[]> |
getLobFileListCache()
Get the lob file list cache if it is used. |
boolean |
getLobFilesInDirectories()
Checks if the lob files stored in directories. |
java.lang.Object |
getLobSyncObject()
Get the synchronization object for lob operations. |
int |
getMaxLengthInplaceLob()
Get the maximum length of a in-place large object |
TempFileDeleter |
getTempFileDeleter()
Get the temp file deleter mechanism. |
Trace |
getTrace()
Get the trace writer. |
void |
handleInvalidChecksum()
Called when the checksum was invalid. |
static void |
main(java.lang.String... a)
Run just this test. |
FileStore |
openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
Open a file at the given location. |
void |
test()
This method will be called by the test framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestDataPage()
| Method Detail |
|---|
public static void main(java.lang.String... a)
throws java.lang.Exception
a - ignored
java.lang.Exception
public void test()
throws java.sql.SQLException
TestBase
test in class TestBasejava.sql.SQLExceptionpublic java.lang.String getDatabasePath()
DataHandler
getDatabasePath in interface DataHandler
public FileStore openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
DataHandler
openFile in interface DataHandlername - the file namemode - the modemustExist - whether the file must already exist
public int getChecksum(byte[] data,
int start,
int end)
DataHandler
getChecksum in interface DataHandlerdata - the byte arraystart - the starting offsetend - the end offset
public void checkPowerOff()
DataHandler
checkPowerOff in interface DataHandlerpublic void checkWritingAllowed()
DataHandler
checkWritingAllowed in interface DataHandlerpublic void freeUpDiskSpace()
DataHandler
freeUpDiskSpace in interface DataHandler
public void handleInvalidChecksum()
throws java.sql.SQLException
DataHandler
handleInvalidChecksum in interface DataHandlerjava.sql.SQLException - if this should not be ignored
public int compareTypeSave(Value a,
Value b)
throws java.sql.SQLException
DataHandler
compareTypeSave in interface DataHandlera - the first valueb - the second value
java.sql.SQLExceptionpublic int getMaxLengthInplaceLob()
DataHandler
getMaxLengthInplaceLob in interface DataHandler
public int allocateObjectId(boolean b,
boolean c)
DataHandler
allocateObjectId in interface DataHandlerb - if a fresh id is requiredc - true if the id is for the data file
public java.lang.String createTempFile()
throws java.sql.SQLException
DataHandler
createTempFile in interface DataHandlerjava.sql.SQLExceptionpublic java.lang.String getLobCompressionAlgorithm(int type)
DataHandler
getLobCompressionAlgorithm in interface DataHandlertype - the data type (CLOB or BLOB)
public java.lang.Object getLobSyncObject()
DataHandler
getLobSyncObject in interface DataHandlerpublic boolean getLobFilesInDirectories()
DataHandler
getLobFilesInDirectories in interface DataHandlerpublic SmallLRUCache<java.lang.String,java.lang.String[]> getLobFileListCache()
DataHandler
getLobFileListCache in interface DataHandlerpublic TempFileDeleter getTempFileDeleter()
DataHandler
getTempFileDeleter in interface DataHandlerpublic Trace getTrace()
DataHandler
getTrace in interface DataHandler
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||