public class FileVersionDeleter extends TupleUpdater<TPS.TPV>
FileMetadataSchema.VERSION).TupleUpdater.UpdateratorTupleFilter.TupleFilterator<E>| Constructor and Description |
|---|
FileVersionDeleter(long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValid(ITuple<TPS.TPV> tuple)
Only visits the
FileMetadataSchema.VERSION columns. |
protected void |
update(IIndex ndx,
ITuple<TPS.TPV> tuple)
Appends a new tuple into the index whose key uses the
choosenTimestamp and whose value is an encoded null. |
filterOnceaddFilter, filter, getProperty, getRequiredProperty, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPropertypublic FileVersionDeleter(long timestamp)
timestamp - A valid timestamp or IRowStoreConstants.AUTO_TIMESTAMP
or IRowStoreConstants.AUTO_TIMESTAMP_UNIQUE.protected boolean isValid(ITuple<TPS.TPV> tuple)
FileMetadataSchema.VERSION columns.isValid in class TupleFilter<TPS.TPV>protected void update(IIndex ndx, ITuple<TPS.TPV> tuple)
choosenTimestamp and whose value is an encoded null.
This is interepreted as a "deleted" file version tuple.
Note: The old tuple is not removed so you can continue to access the historical version explicitly.
update in class TupleUpdater<TPS.TPV>ndx - The index on which the ITupleCursor is reading.tuple - The tuple that is being visited.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.