|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectNeighbourhood.Table
Neighbourhood.CachedTable
@ThreadRestricted static final class Neighbourhood.CachedTable
A cached neighbourhood table, with cache controls.
| Field Summary |
|---|
| Fields inherited from class Neighbourhood.Table |
|---|
isCachingAndCommitting |
| Constructor Summary | |
|---|---|
Neighbourhood.CachedTable(ReadyDirectory rD,
Database d)
|
|
| Method Summary | |
|---|---|
(package private) void |
addVoter(ListNode node)
Adds a voter to the table, updating the counts for the voter's neighbourhood, and its ancestors in the tree. |
void |
commitAll()
Writes all rows that have uncommitted changes. |
(package private) Neighbourhood |
get(String path,
boolean isLeaf)
Retrieves a neighbourhood from this table. |
(package private) Neighbourhood |
getOrCreate(String path,
boolean isLeaf)
Retrieves a neighbourhood from this table; or, if none is stored, a default neighbourhood. |
void |
skimFlush()
Commits and removes rows from the cache, reducing it to its skimmed (normal) size. |
| Methods inherited from class Neighbourhood.Table |
|---|
create, database, drop, exists, getAncestorOfSingleChild, getChildren, put, readyDirectory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Neighbourhood.CachedTable(ReadyDirectory rD,
Database d)
throws IOException
IOException| Method Detail |
|---|
void addVoter(ListNode node)
throws SQLException
SQLException
Neighbourhood get(String path,
boolean isLeaf)
throws SQLException
Neighbourhood.Table
get in class Neighbourhood.TableSQLException
Neighbourhood getOrCreate(String path,
boolean isLeaf)
throws SQLException
Neighbourhood.Table
getOrCreate in class Neighbourhood.TableSQLException
public void commitAll()
throws SQLException
CacheControlledTable
commitAll in interface CacheControlledTableSQLException
public void skimFlush()
throws SQLException
CacheControlledTable
skimFlush in interface CacheControlledTableSQLException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||