public class GoogleDataSegmentPusher extends Object implements DataSegmentPusher
| Constructor and Description |
|---|
GoogleDataSegmentPusher(GoogleStorage storage,
GoogleAccountConfig config,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildPath(String path) |
File |
createDescriptorFile(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
DataSegment segment) |
String |
getPathForHadoop() |
String |
getPathForHadoop(String dataSource)
Deprecated.
|
void |
insert(File file,
String contentType,
String path) |
DataSegment |
push(File indexFilesDir,
DataSegment segment) |
@Inject public GoogleDataSegmentPusher(GoogleStorage storage, GoogleAccountConfig config, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
@Deprecated public String getPathForHadoop(String dataSource)
getPathForHadoop in interface DataSegmentPusherpublic String getPathForHadoop()
getPathForHadoop in interface DataSegmentPusherpublic File createDescriptorFile(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, DataSegment segment) throws IOException
IOExceptionpublic void insert(File file, String contentType, String path) throws IOException
IOExceptionpublic DataSegment push(File indexFilesDir, DataSegment segment) throws IOException
push in interface DataSegmentPusherIOExceptionCopyright © 2011–2017. All rights reserved.