Package io.deephaven.importers.util
Class IngesterUtils
java.lang.Object
io.deephaven.importers.util.IngesterUtils
Importer utilities required for the Illumon importers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnNamesFromSchema(@Nullable io.deephaven.shadow.enterprise.org.jdom2.Element sourceElement, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition, boolean includePartitioningColumn) Returns a list of column source names from a schema and ImportSource.String[]getFilenameAry(String serverName, String pattern, boolean isPrefix) Get the list of files to be processed.
-
Field Details
-
SECOND
public static final long SECOND- See Also:
-
MINUTE
public static final long MINUTE- See Also:
-
HOUR
public static final long HOUR- See Also:
-
DAY
public static final long DAY- See Also:
-
WEEK
public static final long WEEK- See Also:
-
YEAR
public static final long YEAR- See Also:
-
-
Constructor Details
-
IngesterUtils
- Parameters:
log- theLoggerpartition- the partition
-
-
Method Details
-
getFilenameAry
Get the list of files to be processed.- Parameters:
serverName- the server namepattern- the pattern to matchisPrefix- true if the pattern is a prefix, false if it is a substring- Returns:
- an array of file names
-
getColumnNamesFromSchema
public static List<String> getColumnNamesFromSchema(@Nullable @Nullable io.deephaven.shadow.enterprise.org.jdom2.Element sourceElement, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition, boolean includePartitioningColumn) Returns a list of column source names from a schema and ImportSource.- Parameters:
sourceElement- optional Schema ImportSource to use when finding alternate source names for table columnstableDefinition-TableDefinitionobject for the tableincludePartitioningColumn- whether to include the partitioning column in the resultant list- Returns:
- a list of column names.
-