use of org.jclouds.http.options.GetOptions in project druid by druid-io.
the class CloudFilesObjectApiProxy method get.
public CloudFilesObject get(String path, long start) {
final SwiftObject swiftObject;
if (start == 0) {
swiftObject = objectApi.get(path);
} else {
swiftObject = objectApi.get(path, new GetOptions().startAt(start));
}
Payload payload = swiftObject.getPayload();
return new CloudFilesObject(payload, this.region, this.container, path);
}
Aggregations