Class FilesystemCachedTable<K,V extends FilesystemCachedObject<K,V>>

java.lang.Object
com.aoindustries.aoserv.client.AoservTable<K,V>
com.aoindustries.aoserv.client.FilesystemCachedTable<K,V>
All Implemented Interfaces:
FileListObjectFactory<V>, Table<V>, Iterable<V>
Direct Known Subclasses:
DistroFileTable

public abstract class FilesystemCachedTable<K,V extends FilesystemCachedObject<K,V>> extends AoservTable<K,V> implements FileListObjectFactory<V>
A FilesystemCachedTable stores all of the available FilesystemCachedObjects in a temporary file and performs all subsequent data access locally. The server notifies the client when a table is updated, and the caches are then invalidated. Once invalidated, the data is reloaded upon next use.

The file format is a simple fixed record length format.

TODO: It is possible to use the same column sorting technique to implement the getIndexedRows method from AoservTable.

Author:
AO Industries, Inc.