Package com.mindee.v2.cli
Class SplitCommand
- java.lang.Object
-
- com.mindee.v2.cli.BaseCommand
-
- com.mindee.v2.cli.BaseInferenceCommand
-
- com.mindee.v2.cli.SplitCommand
-
public class SplitCommand extends BaseInferenceCommand
CLI command for the V2 split utility.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mindee.v2.cli.BaseCommand
BaseCommand.OutputType
-
-
Field Summary
-
Fields inherited from class com.mindee.v2.cli.BaseInferenceCommand
alias, file, modelId
-
Fields inherited from class com.mindee.v2.cli.BaseCommand
apiKey, output
-
-
Constructor Summary
Constructors Constructor Description SplitCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommonResponseexecuteRequest(MindeeClient client, LocalInputSource inputSource)Executes the inference request and returns the product response.protected StringgetFullOutput(CommonResponse response)Returns the full string for the given response.protected StringgetSummaryOutput(CommonResponse response)Returns the summary string for the given response.-
Methods inherited from class com.mindee.v2.cli.BaseInferenceCommand
call, getWebhookIds
-
Methods inherited from class com.mindee.v2.cli.BaseCommand
printOutput
-
-
-
-
Method Detail
-
executeRequest
protected CommonResponse executeRequest(MindeeClient client, LocalInputSource inputSource) throws Exception
Description copied from class:BaseInferenceCommandExecutes the inference request and returns the product response.- Specified by:
executeRequestin classBaseInferenceCommand- Parameters:
client- the V2 Mindee clientinputSource- the prepared local input source- Returns:
- the product response
- Throws:
Exception- on IO or API error
-
getSummaryOutput
protected String getSummaryOutput(CommonResponse response)
Description copied from class:BaseCommandReturns the summary string for the given response. Override in each command.- Specified by:
getSummaryOutputin classBaseCommand- Parameters:
response- the response- Returns:
- the summary string
-
getFullOutput
protected String getFullOutput(CommonResponse response)
Description copied from class:BaseCommandReturns the full string for the given response.- Specified by:
getFullOutputin classBaseCommand- Parameters:
response- the product response- Returns:
- the full output string
-
-