truncateOlderThan

public void truncateOlderThan(int snapshotIndex)

Truncates the storage, dropping all records which occur before the Nth snapshot for each entity.

The snapshot index is counted from the latest to earliest, with 0 representing the latest snapshot.

The snapshot index higher than the overall snapshot count of the entity is allowed, the entity records remain intact in this case.

Throws

if the snapshotIndex is negative


public void truncateOlderThan(int snapshotIndex, Timestamp date)

Truncates the storage, dropping all records older than date but not newer than the Nth snapshot.

The snapshot index is counted from the latest to earliest, with 0 representing the latest snapshot for each entity.

The snapshot index higher than the overall snapshot count of the entity is allowed, the records remain intact in this case.

Throws

if the snapshotIndex is negative