org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class ReplicationQueryPredicates

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.ReplicationQueryPredicates

public class ReplicationQueryPredicates
extends java.lang.Object

Contains the parameters required to perform a single replication from the database.


Constructor Summary
ReplicationQueryPredicates(long bottomTransactionId, long topTransactionId)
          Creates a new instance.
 
Method Summary
 java.util.List<java.lang.Long> getActiveList()
          Gets the transaction active list.
 long getBottomTransactionId()
          Gets the transaction id to begin querying from.
 java.util.List<java.lang.Long> getReadyList()
          Gets the transaction ready list.
 long getTopTransactionId()
          Gets the transaction id to stop querying at.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationQueryPredicates

public ReplicationQueryPredicates(long bottomTransactionId,
                                  long topTransactionId)
Creates a new instance.

Parameters:
bottomTransactionId - The transaction id to begin querying from. This will be included in the query.
topTransactionId - The transaction id to stop querying at. This will not be included in the query.
Method Detail

getBottomTransactionId

public long getBottomTransactionId()
Gets the transaction id to begin querying from. This will be included in the query.

Returns:
The transaction id.

getTopTransactionId

public long getTopTransactionId()
Gets the transaction id to stop querying at. This will not be included in the query.

Returns:
The transaction id.

getReadyList

public java.util.List<java.lang.Long> getReadyList()
Gets the transaction ready list. These will be included in the query in addition to those the ids in the range defined by the bottom and top transaction id.

Returns:
The transaction id list.

getActiveList

public java.util.List<java.lang.Long> getActiveList()
Gets the transaction active list. These will be excluded from the query results due to them being active transactions at the point when the snapshot was taken.

Returns:
The transaction id list.