public class RasterLoaderJob extends RasterJob
Constructor and Description |
---|
RasterLoaderJob(org.apache.hadoop.conf.Configuration config)
Raster Loader Job constructor using an existing configuration
|
Modifier and Type | Method and Description |
---|---|
void |
addFileToLoad(java.lang.String fileToLoad)
Adds a file to the list of rasters to load by this job
|
void |
dontExpandOutputDir()
Output results will be put in directory without expanding source path
|
boolean |
execute()
Executes the configured raster loader job.
|
void |
setFilesToLoad(java.lang.String filesToLoad)
Sets the files to load in this job.
|
void |
setGdalPath(java.lang.String gdalLibPath)
Sets GDAL library path to this job
|
void |
setOutputFolder(java.lang.String outputFolder)
Sets the hdfs output folder for the loaded rasters of this job.
|
void |
setRasterThumbnailFolder(java.lang.String thumbnailFolder)
Sets the folder to store thumbnails of the rasters loaded by this job.
|
void |
setTileOverlap(java.lang.String tileOverlap)
Sets the overlapping bytes per tile border for this job load
|
execute, getHadoopJob
public RasterLoaderJob(org.apache.hadoop.conf.Configuration config)
config
- job configuration with previously loaded properties.public void setFilesToLoad(java.lang.String filesToLoad)
filesToLoad
- it can be a single file or folder, or a comma separated list of multple inputs.public void addFileToLoad(java.lang.String fileToLoad)
fileToLoad
- location of the raster to loadpublic void setTileOverlap(java.lang.String tileOverlap)
tileOverlap
- number of overlapping bytes in every raster tile´s border. If none is specified, a default value of 2 is used.public void dontExpandOutputDir()
public void setOutputFolder(java.lang.String outputFolder)
outputFolder
- hdfs output folder where .ohif files will be createdpublic void setRasterThumbnailFolder(java.lang.String thumbnailFolder)
thumbnailFolder
- the NFS output folder where thumbnails of the loaded rasters can be stored, this folder must be shared across NFS through all nodes and must have write access for every user involved in job execution.public boolean execute() throws java.lang.Exception
java.lang.Exception
- whenever there is a problem during raster load job executionpublic void setGdalPath(java.lang.String gdalLibPath) throws java.lang.Exception
gdalLibPath
- path to gdal native libraries pathjava.lang.Exception
- whenever there is a problem during GDAL libraries load into job classpath.Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.