Module org.apache.jena.arq
Package org.apache.jena.sparql.core.mem
Class PMapTupleTable<TupleMapType,TupleType,ConsumerType>
java.lang.Object
org.apache.jena.sparql.core.mem.OrderedTupleTable<TupleType,ConsumerType>
org.apache.jena.sparql.core.mem.PMapTupleTable<TupleMapType,TupleType,ConsumerType>
- Type Parameters:
TupleMapType- the type of the internal structure holding table dataTupleType- the type of tuple in which a subclass of this class transactsConsumerType- a type of consumer that can accept as many elements as exist inTupleType
- All Implemented Interfaces:
TransactionalComponent,TupleTable<TupleType>
- Direct Known Subclasses:
PMapQuadTable,PMapTripleTable
public abstract class PMapTupleTable<TupleMapType,TupleType,ConsumerType>
extends OrderedTupleTable<TupleType,ConsumerType>
implements TupleTable<TupleType>
A partial implementation of
TupleTable that contains some common state management.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlocalis initialized viainitial()voidclear()Clear all tuples from this table.voidcommit()Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)voidend()Finish the transaction - if a write transaction and commit() has not been called, then abortMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.mem.TupleTable
abort, add, delete
-
Constructor Details
-
PMapTupleTable
- Parameters:
n- a name for this table
-
-
Method Details
-
begin
localis initialized viainitial()- Specified by:
beginin interfaceTransactionalComponent
-
end
public void end()Description copied from interface:TransactionalComponentFinish the transaction - if a write transaction and commit() has not been called, then abort- Specified by:
endin interfaceTransactionalComponent
-
commit
public void commit()Description copied from interface:TransactionalComponentCommit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)- Specified by:
commitin interfaceTransactionalComponent
-
clear
public void clear()Description copied from interface:TupleTableClear all tuples from this table.- Specified by:
clearin interfaceTupleTable<TupleMapType>
-