public class BackfillSegmentUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TAR_SUFFIX |
| Constructor and Description |
|---|
BackfillSegmentUtils(String controllerHost,
String controllerPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
downloadSegment(String tableName,
String segmentName,
File downloadSegmentDir,
File tableBackupDir)
Downloads a segment from a table to a directory locally, and backs it up to given backup path
|
List<String> |
getAllSegments(String tableName,
CommonConstants.Segment.SegmentType segmentType)
Fetches the list of all segment names for a table
|
boolean |
uploadSegment(String rawTableName,
String segmentName,
File segmentDir,
File outputDir)
Uploads the segment tar to the controller.
|
public static final String TAR_SUFFIX
public List<String> getAllSegments(String tableName, CommonConstants.Segment.SegmentType segmentType) throws IOException
tableName - IOExceptionpublic boolean downloadSegment(String tableName, String segmentName, File downloadSegmentDir, File tableBackupDir)
tableName - segmentName - downloadSegmentDir - - download segment pathtableBackupDir - - backup segments pathCopyright © 2018–2020 Apache Software Foundation. All rights reserved.