Class FileStatsExtractor
java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.extractors.FileStatsExtractor
FileStatsExtractor uses the FileClassifier to extract the stats about a file and then convert them into a list of
annotation.
-
Constructor Summary
ConstructorsConstructorDescriptionFileStatsExtractor(File file, FileClassifier fileClassifier, SurveyActionServiceConnector surveyActionServiceConnector) Constructor captures the file that is to be analysed - where it is the asset being surveyed.FileStatsExtractor(File file, FileClassifier fileClassifier, SurveyActionServiceConnector surveyActionServiceConnector, String subjectName) Constructor captures the file that is to be analysed - where it is one of several files measured in the same survey, such as the files in a surveyed folder. -
Method Summary
-
Constructor Details
-
FileStatsExtractor
public FileStatsExtractor(File file, FileClassifier fileClassifier, SurveyActionServiceConnector surveyActionServiceConnector) Constructor captures the file that is to be analysed - where it is the asset being surveyed.- Parameters:
file- file to analyse
-
FileStatsExtractor
public FileStatsExtractor(File file, FileClassifier fileClassifier, SurveyActionServiceConnector surveyActionServiceConnector, String subjectName) Constructor captures the file that is to be analysed - where it is one of several files measured in the same survey, such as the files in a surveyed folder. The measurements are all attached to the survey's asset, so the subject name is what tells their qualified names apart.- Parameters:
file- file to analysesubjectName- what the annotation is about - the file's path within the surveyed folder
-
-
Method Details
-
getAnnotation
public AnnotationProperties getAnnotation() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, IOException
-