|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.layout.NodeLayoutBase<T>
T - Type of Value being storedpublic abstract class NodeLayoutBase<T extends org.openrdf.model.Value>
Abstract class. Provides read/write access to node's persisted in either a single table or two tables, where the first table stores nodes short enough to be indexed and the second table stores the long nodes. In the long node table hashes are generated for the indices.
| Constructor Summary | |
|---|---|
NodeLayoutBase(SQLCache sqlCache,
Sequence sequence,
java.lang.String sequenceName,
java.lang.String longSequenceName,
java.lang.String tableName,
java.lang.String longTableName,
java.lang.String resourceTempTableName,
java.lang.String idTempTableName,
int maxLength,
java.lang.String optimizationString)
Construct a layout to store nodes in a database |
|
| Method Summary | |
|---|---|
java.lang.Long |
fetchId(T n)
Fetches a node's ID from the database |
java.lang.String |
getLongSequenceName()
Get the longSequenceName |
java.lang.String |
getSequenceName()
Get the sequenceName |
boolean |
isLong(T n)
Determines whether or not a node is 'long' |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.common.rdb.layout.INodeLayout |
|---|
convert, fetchValue, getType, resolveStoredIds, resolveStoredNodes, store |
| Constructor Detail |
|---|
public NodeLayoutBase(SQLCache sqlCache,
Sequence sequence,
java.lang.String sequenceName,
java.lang.String longSequenceName,
java.lang.String tableName,
java.lang.String longTableName,
java.lang.String resourceTempTableName,
java.lang.String idTempTableName,
int maxLength,
java.lang.String optimizationString)
sqlCache - The interface to the SQL prepared statement cachesequence - The sequence Object that is used to get IDssequenceName - The name of the sequence that is used to get IDslongSequenceName - The name of the sequence that is used to get IDs for long objectstableName - The name of the table where the nodes are storedlongTableName - The name of the table where excessively long nodes are storedresourceTempTableName - The name of the temporary table used to bulk insert nodesidTempTableName - The name of the temporary table used to bulk id resolutionmaxLength - The maximum length of a node's string representation before it is considered longoptimizationString - Extra parameters added to queries for database specific optimizations| Method Detail |
|---|
public boolean isLong(T n)
n - The node to test
public java.lang.Long fetchId(T n)
INodeLayout
fetchId in interface INodeLayout<T extends org.openrdf.model.Value>n - The node who's ID is to be found
public java.lang.String getLongSequenceName()
public java.lang.String getSequenceName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||