public interface DataSegmentArchiver
| Modifier and Type | Method and Description |
|---|---|
DataSegment |
archive(DataSegment segment)
Perform an archive task on the segment and return the resulting segment or null if there was no action needed.
|
DataSegment |
restore(DataSegment segment)
Perform the restore from an archived segment and return the resulting segment or null if there was no action
|
@Nullable DataSegment archive(DataSegment segment) throws SegmentLoadingException
segment - The source segmentSegmentLoadingException - on error@Nullable DataSegment restore(DataSegment segment) throws SegmentLoadingException
segment - The source (archived) segmentSegmentLoadingException - on errorCopyright © 2011–2017. All rights reserved.