@Override public LoadSpecResult loadSegment(final File outDir) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(path.toFile(), outDir).size()); } }
private void loadInLocation(DataSegment segment, File storageDir) throws SegmentLoadingException { // LoadSpec isn't materialized until here so that any system can interpret Segment without having to have all the // LoadSpec dependencies. final LoadSpec loadSpec = jsonMapper.convertValue(segment.getLoadSpec(), LoadSpec.class); final LoadSpec.LoadSpecResult result = loadSpec.loadSegment(storageDir); if (result.getSize() != segment.getSize()) { log.warn( "Segment [%s] is different than expected size. Expected [%d] found [%d]", segment.getId(), segment.getSize(), result.getSize() ); } }
private void loadInLocation(DataSegment segment, File storageDir) throws SegmentLoadingException { // LoadSpec isn't materialized until here so that any system can interpret Segment without having to have all the // LoadSpec dependencies. final LoadSpec loadSpec = jsonMapper.convertValue(segment.getLoadSpec(), LoadSpec.class); final LoadSpec.LoadSpecResult result = loadSpec.loadSegment(storageDir); if (result.getSize() != segment.getSize()) { log.warn( "Segment [%s] is different than expected size. Expected [%d] found [%d]", segment.getIdentifier(), segment.getSize(), result.getSize() ); } }
@Override public LoadSpecResult loadSegment(File outDir) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(new S3DataSegmentPuller.S3Coords(bucket, key), outDir).size()); }
@Override public LoadSpecResult loadSegment(final File outDir) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(path.toFile(), outDir).size()); } }
@Override public LoadSpecResult loadSegment(File file) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(region, container, path, file).size()); } }
@Override public LoadSpecResult loadSegment(File outDir) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(new S3DataSegmentPuller.S3Coords(bucket, key), outDir).size()); }
@Override public LoadSpecResult loadSegment(File outDir) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(path, outDir).size()); } }
@Override public LoadSpecResult loadSegment(File file) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(containerName, blobPath, file).size()); } }
@Override public LoadSpecResult loadSegment(File file) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(bucket, path, file).size()); } }
@Override public LoadSpecResult loadSegment(File outDir) throws SegmentLoadingException { return new LoadSpecResult(puller.getSegmentFiles(key, outDir).size()); } }