This contains the top level functionality. Provides file management services and access.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static interface | DataFileCache.
file format fields |
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected Cache | |
| protected int | |
| protected boolean | |
| protected boolean | |
| protected Database | |
| protected RandomAccessInterface | |
| protected String | |
| protected int | |
| protected int | |
| protected FileAccess | |
| protected volatile long | |
| protected boolean | fileModified
this flag is used externally to determine if a backup is required |
| protected long | |
| pack-priv static final int | |
| pack-priv boolean | |
| pack-priv ReadWriteLock | |
| protected boolean | |
| protected long | |
| protected long | |
| protected int | |
| public long | |
| pack-priv Lock | |
| protected RowInputInterface | |
| public RowOutputInterface | |
| private RAShadowFile | |
| public DataSpaceManager | |
| protected long | |
| protected int | |
| pack-priv Lock |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public long | |
| public int | |
| protected void | |
| public void | close()
Writes out all cached rows that have been modified and the free position pointer for the *.data file and then closes the file. |
| protected int | |
| protected int | |
| pack-priv DataFileDefrag | |
| private void | |
| pack-priv void | |
| public long | |
| public CachedObject | |
| public CachedObject | |
| public CachedObject | |
| public AtomicInteger | |
| public int | |
| public int | |
| public int | |
| public long | |
| public String | |
| pack-priv int | |
| private CachedObject | |
| private CachedObject | |
| public long | |
| pack-priv RowInputInterface | |
| public RAShadowFile | |
| public long | |
| protected void | |
| pack-priv void | |
| protected void | initParams(Database database, String baseFileName, boolean defrag)
initial external parameters are set here. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| public void | |
| public void | open(boolean readonly)
Opens the *.data file for this cache, setting the variables that allow access to the particular database version of the *.data file. |
| private void | |
| private void | |
| protected void | |
| public void | |
| public CachedObject | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private boolean | |
| private boolean | |
| public void | |
| protected void | |
| public void | |
| protected void | |
| protected void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| backupFileName | back to summary |
|---|---|
| protected String backupFileName | |
| cache | back to summary |
|---|---|
| protected Cache cache | |
| cachedRowPadding | back to summary |
|---|---|
| protected int cachedRowPadding | |
| cacheModified | back to summary |
|---|---|
| protected boolean cacheModified | |
| cacheReadonly | back to summary |
|---|---|
| protected boolean cacheReadonly | |
| database | back to summary |
|---|---|
| protected Database database | |
| dataFile | back to summary |
|---|---|
| protected RandomAccessInterface dataFile | |
| dataFileName | back to summary |
|---|---|
| protected String dataFileName | |
| dataFileScale | back to summary |
|---|---|
| protected int dataFileScale | |
| dataFileSpace | back to summary |
|---|---|
| protected int dataFileSpace | |
| fa | back to summary |
|---|---|
| protected FileAccess fa | |
| fileFreePosition | back to summary |
|---|---|
| protected volatile long fileFreePosition | |
| fileModified | back to summary |
|---|---|
| protected boolean fileModified this flag is used externally to determine if a backup is required | |
| fileStartFreePosition | back to summary |
|---|---|
| protected long fileStartFreePosition | |
| initIOBufferSize | back to summary |
|---|---|
| pack-priv static final int initIOBufferSize | |
| is251 | back to summary |
|---|---|
| pack-priv boolean is251 | |
| lock | back to summary |
|---|---|
| pack-priv ReadWriteLock lock | |
| logEvents | back to summary |
|---|---|
| protected boolean logEvents | |
| lostSpaceSize | back to summary |
|---|---|
| protected long lostSpaceSize | |
| maxCacheBytes | back to summary |
|---|---|
| protected long maxCacheBytes | |
| maxCacheRows | back to summary |
|---|---|
| protected int maxCacheRows | |
| maxDataFileSize | back to summary |
|---|---|
| public long maxDataFileSize | |
| readLock | back to summary |
|---|---|
| pack-priv Lock readLock | |
| rowIn | back to summary |
|---|---|
| protected RowInputInterface rowIn | |
| rowOut | back to summary |
|---|---|
| public RowOutputInterface rowOut | |
| shadowFile | back to summary |
|---|---|
| private RAShadowFile shadowFile | |
| spaceManager | back to summary |
|---|---|
| public DataSpaceManager spaceManager | |
| spaceManagerPosition | back to summary |
|---|---|
| protected long spaceManagerPosition | |
| storeCount | back to summary |
|---|---|
| protected int storeCount | |
| writeLock | back to summary |
|---|---|
| pack-priv Lock writeLock | |
| DataFileCache | back to summary |
|---|---|
| public DataFileCache(Database db, String baseFileName) | |
| DataFileCache | back to summary |
|---|---|
| public DataFileCache(Database db, String baseFileName, boolean defrag) used for defrag | |
| add | back to summary |
|---|---|
| public void add(CachedObject object, boolean keep) | |
| adjustStoreCount | back to summary |
|---|---|
| public void adjustStoreCount(int adjust) | |
| bytesCapacity | back to summary |
|---|---|
| public long bytesCapacity() | |
| capacity | back to summary |
|---|---|
| public int capacity() | |
| clear | back to summary |
|---|---|
| protected void clear() | |
| close | back to summary |
|---|---|
| public void close() Writes out all cached rows that have been modified and the free position pointer for the *.data file and then closes the file. | |
| copyShadow | back to summary |
|---|---|
| protected int copyShadow(CachedObject[] rows, int offset, int count) | |
| copyShadow | back to summary |
|---|---|
| protected int copyShadow(CachedObject row) | |
| defrag | back to summary |
|---|---|
| pack-priv DataFileDefrag defrag(Session session) | |
| deleteBackupFile | back to summary |
|---|---|
| private void deleteBackupFile() | |
| deleteDataFile | back to summary |
|---|---|
| pack-priv void deleteDataFile() | |
| enlargeFileSpace | back to summary |
|---|---|
| public long enlargeFileSpace(long newLength) Delta must always result in block multiples | |
| get | back to summary |
|---|---|
| public CachedObject get(CachedObject object, PersistentStore store, boolean keep) | |
| get | back to summary |
|---|---|
| public CachedObject get(long pos, int size, PersistentStore store, boolean keep) | |
| get | back to summary |
|---|---|
| public CachedObject get(long pos, PersistentStore store, boolean keep) | |
| getAccessCount | back to summary |
|---|---|
| public AtomicInteger getAccessCount() | |
| getCachedObjectCount | back to summary |
|---|---|
| public int getCachedObjectCount() | |
| getDataFileScale | back to summary |
|---|---|
| public int getDataFileScale() | |
| getDataFileSpace | back to summary |
|---|---|
| public int getDataFileSpace() | |
| getFileFreePos | back to summary |
|---|---|
| public long getFileFreePos() | |
| getFileName | back to summary |
|---|---|
| public String getFileName() | |
| getFlags | back to summary |
|---|---|
| pack-priv int getFlags() throws IOException | |
| getFromFile | back to summary |
|---|---|
| private CachedObject getFromFile(long pos, PersistentStore store, boolean keep) | |
| getFromFile | back to summary |
|---|---|
| private CachedObject getFromFile(long pos, int size, PersistentStore store, boolean keep) | |
| getLostBlockSize | back to summary |
|---|---|
| public long getLostBlockSize() | |
| getRaw | back to summary |
|---|---|
| pack-priv RowInputInterface getRaw(long pos) | |
| getShadowFile | back to summary |
|---|---|
| public RAShadowFile getShadowFile() | |
| getTotalCachedBlockSize | back to summary |
|---|---|
| public long getTotalCachedBlockSize() | |
| initBuffers | back to summary |
|---|---|
| protected void initBuffers() | |
| initNewFile | back to summary |
|---|---|
| pack-priv void initNewFile() | |
| initParams | back to summary |
|---|---|
| protected void initParams(Database database, String baseFileName, boolean defrag) initial external parameters are set here. | |
| isDataReadOnly | back to summary |
|---|---|
| public boolean isDataReadOnly() | |
| isFileModified | back to summary |
|---|---|
| public boolean isFileModified() | |
| isFileOpen | back to summary |
|---|---|
| public boolean isFileOpen() | |
| isModified | back to summary |
|---|---|
| public boolean isModified() | |
| logDetailEvent | back to summary |
|---|---|
| pack-priv void logDetailEvent(String message) | |
| logInfoEvent | back to summary |
|---|---|
| pack-priv void logInfoEvent(String message) | |
| logSevereEvent | back to summary |
|---|---|
| private void logSevereEvent(String message, Throwable t, long position) | |
| logSevereEvent | back to summary |
|---|---|
| public void logSevereEvent(String message, Throwable t) | |
| open | back to summary |
|---|---|
| public void open(boolean readonly) Opens the *.data file for this cache, setting the variables that allow access to the particular database version of the *.data file. | |
| openShadowFile | back to summary |
|---|---|
| private void openShadowFile() | |
| readObject | back to summary |
|---|---|
| private void readObject(long pos) | |
| readObject | back to summary |
|---|---|
| protected void readObject(long pos, int size) | |
| release | back to summary |
|---|---|
| public void release() Abandons changed rows and closes the .data file. | |
| release | back to summary |
|---|---|
| public CachedObject release(long pos) | |
| releaseRange | back to summary |
|---|---|
| public void releaseRange(long startPos, long limitPos) | |
| releaseRange | back to summary |
|---|---|
| public void releaseRange(IntIndex list, int fileBlockItemCount) | |
| remove | back to summary |
|---|---|
| public void remove(CachedObject object) Used when a row is deleted as a result of some DML or DDL statement. Removes the row from the cache data structures. | |
| removePersistence | back to summary |
|---|---|
| public void removePersistence(CachedObject object) | |
| reopen | back to summary |
|---|---|
| public void reopen() | |
| reset | back to summary |
|---|---|
| public void reset() Commits all the changes to the file | |
| restoreBackup | back to summary |
|---|---|
| private boolean restoreBackup() Restores a compressed backup or the .data file. | |
| restoreBackupIncremental | back to summary |
|---|---|
| private boolean restoreBackupIncremental() Restores in from an incremental backup | |
| saveRow | back to summary |
|---|---|
| public void saveRow(CachedObject row) Writes out the specified Row. Will write only the Nodes or both Nodes and table row data depending on what is not already persisted to disk. | |
| saveRowNoLock | back to summary |
|---|---|
| protected void saveRowNoLock(CachedObject row) | |
| saveRowOutput | back to summary |
|---|---|
| public void saveRowOutput(long pos) | |
| saveRows | back to summary |
|---|---|
| protected void saveRows(CachedObject[] rows, int offset, int count) | |
| setFileModified | back to summary |
|---|---|
| protected void setFileModified() | |
| setFlag | back to summary |
|---|---|
| pack-priv void setFlag(int singleFlag, boolean val) throws IOException | |
| setFlags | back to summary |
|---|---|
| pack-priv void setFlags(int flags) throws IOException | |
| setSpaceProps | back to summary |
|---|---|
| pack-priv void setSpaceProps(int spaceProps) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| FLAG_200 | back to summary |
|---|---|
| public static final int FLAG_200 | |
| FLAG_251 | back to summary |
|---|---|
| public static final int FLAG_251 | |
| FLAG_HX | back to summary |
|---|---|
| public static final int FLAG_HX | |
| FLAG_ISSAVED | back to summary |
|---|---|
| public static final int FLAG_ISSAVED | |
| FLAG_ISSHADOWED | back to summary |
|---|---|
| public static final int FLAG_ISSHADOWED | |
| FLAG_ROWINFO | back to summary |
|---|---|
| public static final int FLAG_ROWINFO | |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| INT_FLAGS | back to summary |
|---|---|
| public static final int INT_FLAGS | |
| INT_SPACE_LIST_POS | back to summary |
|---|---|
| public static final int INT_SPACE_LIST_POS | |
| INT_SPACE_PROPS | back to summary |
|---|---|
| public static final int INT_SPACE_PROPS | |
| LONG_EMPTY_SIZE | back to summary |
|---|---|
| public static final int LONG_EMPTY_SIZE | |
| LONG_FREE_POS | back to summary |
|---|---|
| public static final int LONG_FREE_POS | |
| LONG_TIMESTAMP | back to summary |
|---|---|
| public static final int LONG_TIMESTAMP | |
| MAX_INITIAL_FREE_POS | back to summary |
|---|---|
| public static final int MAX_INITIAL_FREE_POS | |
| MIN_INITIAL_FREE_POS | back to summary |
|---|---|
| public static final int MIN_INITIAL_FREE_POS | |