public class AzureDataSegmentPusher extends Object implements io.druid.segment.loading.DataSegmentPusher
| Constructor and Description |
|---|
AzureDataSegmentPusher(AzureStorage azureStorage,
AzureAccountConfig config,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
File |
createCompressedSegmentDataFile(File indexFilesDir) |
File |
createSegmentDescriptorFile(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
io.druid.timeline.DataSegment segment) |
Map<String,String> |
getAzurePaths(io.druid.timeline.DataSegment segment) |
String |
getPathForHadoop(String dataSource) |
io.druid.timeline.DataSegment |
push(File indexFilesDir,
io.druid.timeline.DataSegment segment) |
io.druid.timeline.DataSegment |
uploadDataSegment(io.druid.timeline.DataSegment segment,
int version,
File compressedSegmentData,
File descriptorFile,
Map<String,String> azurePaths) |
@Inject public AzureDataSegmentPusher(AzureStorage azureStorage, AzureAccountConfig config, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public String getPathForHadoop(String dataSource)
getPathForHadoop in interface io.druid.segment.loading.DataSegmentPusherpublic File createCompressedSegmentDataFile(File indexFilesDir) throws IOException
IOExceptionpublic File createSegmentDescriptorFile(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, io.druid.timeline.DataSegment segment) throws IOException
IOExceptionpublic io.druid.timeline.DataSegment uploadDataSegment(io.druid.timeline.DataSegment segment,
int version,
File compressedSegmentData,
File descriptorFile,
Map<String,String> azurePaths)
throws com.microsoft.azure.storage.StorageException,
IOException,
URISyntaxException
com.microsoft.azure.storage.StorageExceptionIOExceptionURISyntaxExceptionpublic io.druid.timeline.DataSegment push(File indexFilesDir, io.druid.timeline.DataSegment segment) throws IOException
push in interface io.druid.segment.loading.DataSegmentPusherIOExceptionCopyright © 2011–2015. All rights reserved.