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 DataSegmentPusher
public String getPathForHadoop()
getPathForHadoop
in interface DataSegmentPusher
public File createDescriptorFile(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, DataSegment segment) throws IOException
IOException
public void insert(File file, String contentType, String path) throws IOException
IOException
public DataSegment push(File indexFilesDir, DataSegment segment) throws IOException
push
in interface DataSegmentPusher
IOException
Copyright © 2011–2017. All rights reserved.