Package io.deephaven.importers
Class StandardImporterArguments
java.lang.Object
io.deephaven.importers.StandardImporterArguments
- All Implemented Interfaces:
LogOutputAppendable
Standard class for importer arguments. Extends StandardArguments to add arguments and capabilities needed for data
import.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandardImporterArguments(@NotNull io.deephaven.shadow.enterprise.org.apache.commons.cli.CommandLine commandLine) protectedStandardImporterArguments(@NotNull String namespace, @NotNull String tableName, @Nullable String destinationPartitionStr, @Nullable File destinationDirectory, @Nullable String partitioningColumn, @NotNull ImportOutputMode outputMode) -
Method Summary
Modifier and TypeMethodDescriptionfinal LogOutputappendArguments(@NotNull LogOutput logOutput) Subclasses should define their own version of appendArguments, which should almost always invoke the super-class implementation first.String[]static StringgetHelpString(@NotNull String importerName, @NotNull UnaryOperator<io.deephaven.shadow.enterprise.org.apache.commons.cli.Options>... extraOptionSuppliers) Construct a help string based on the standard arguments and those of an extending class.static voidEntry point for execution in testing.protected static <AT extends io.deephaven.importers.StandardArguments>
ATparseCommandLine(@NotNull String importerName, @NotNull io.deephaven.importers.StandardArguments.ArgumentsConstructor<AT> argumentsConstructor, @NotNull String[] commandLineArguments, @NotNull UnaryOperator<io.deephaven.shadow.enterprise.org.apache.commons.cli.Options>... extraOptionSuppliers) toString()
-
Field Details
-
namespace
-
tableName
-
-
Constructor Details
-
StandardImporterArguments
protected StandardImporterArguments(@NotNull @NotNull io.deephaven.shadow.enterprise.org.apache.commons.cli.CommandLine commandLine) throws io.deephaven.shadow.enterprise.org.apache.commons.cli.ParseException - Throws:
io.deephaven.shadow.enterprise.org.apache.commons.cli.ParseException
-
StandardImporterArguments
protected StandardImporterArguments(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, @Nullable @Nullable String destinationPartitionStr, @Nullable @Nullable File destinationDirectory, @Nullable @Nullable String partitioningColumn, @NotNull @NotNull ImportOutputMode outputMode)
-
-
Method Details
-
getPartitioningColumnName
-
getDestinationPartitions
-
getDestinationDirectory
-
getImportTableWriterFactory
-
appendArguments
Subclasses should define their own version of appendArguments, which should almost always invoke the super-class implementation first.- Parameters:
logOutput- A LogOutput to append argument names and values to.- Returns:
- The logOutput
-
parseCommandLine
@SafeVarargs protected static <AT extends io.deephaven.importers.StandardArguments> AT parseCommandLine(@NotNull @NotNull String importerName, @NotNull @NotNull io.deephaven.importers.StandardArguments.ArgumentsConstructor<AT> argumentsConstructor, @NotNull @NotNull String[] commandLineArguments, @NotNull @NotNull UnaryOperator<io.deephaven.shadow.enterprise.org.apache.commons.cli.Options>... extraOptionSuppliers) -
getHelpString
@SafeVarargs public static String getHelpString(@NotNull @NotNull String importerName, @NotNull @NotNull UnaryOperator<io.deephaven.shadow.enterprise.org.apache.commons.cli.Options>... extraOptionSuppliers) Construct a help string based on the standard arguments and those of an extending class.- Parameters:
importerName- The name of the importer implementation classextraOptionSuppliers- options supplied by extension of StandardImporterArguments.- Returns:
- a string documenting the expected command line arguments
-
main
Entry point for execution in testing.- Parameters:
args- command line
-
append
- Specified by:
appendin interfaceLogOutputAppendable
-
toString
-