Class LocalAppendableTableFactory
java.lang.Object
com.illumon.iris.db.tables.appendable.local.LocalAppendableTableFactory
public class LocalAppendableTableFactory extends Object
Simple constructors for stand-alone use cases.
-
Constructor Summary
Constructors Constructor Description LocalAppendableTableFactory()
-
Method Summary
Modifier and Type Method Description static LocalAppendableTable
make(TableDefinition definition, File destination, boolean append)
Make a simple stand-alone table using theStringCacheProvider
obtained viaStringCacheProviders.getAlwaysCreateStringInstance(boolean)
withunbounded = true
.static LocalAppendableTable
make(TableDefinition definition, File destination, boolean append, StringCacheProvider stringCacheProvider)
Make a simple stand-alone table.static LocalAppendableColumn
makeColumn(com.illumon.dataobjects.ColumnDefinition definition, File destination, boolean initialize)
Make a standalone appendable column using theStringCacheProvider
obtained viaStringCacheProviders.getAlwaysCreateStringInstance(boolean)
withunbounded = true
.static LocalAppendableColumn
makeColumn(com.illumon.dataobjects.ColumnDefinition definition, File destination, boolean initialize, StringCacheProvider stringCacheProvider)
Make a standalone appendable column.static LocalColumnLocation
makeColumnLocation(WritableLocalTableLocation tableLocation, String name)
Make a simple standalone writable column location.static LocalColumnLocation
makeColumnLocation(File destination, String name)
Make a simple standalone writable column location.static WritableLocalTableLocation
makeTableLocation(File destination)
Make a simple standalone writable table location.
-
Constructor Details
-
LocalAppendableTableFactory
public LocalAppendableTableFactory()
-
-
Method Details
-
makeTableLocation
Make a simple standalone writable table location.- Parameters:
destination
- The destination directory- Returns:
- The location
-
makeColumnLocation
public static LocalColumnLocation makeColumnLocation(@NotNull WritableLocalTableLocation tableLocation, @NotNull String name)Make a simple standalone writable column location.- Parameters:
tableLocation
- The table locationname
- The column name- Returns:
- The location
-
makeColumnLocation
public static LocalColumnLocation makeColumnLocation(@NotNull File destination, @NotNull String name)Make a simple standalone writable column location.- Parameters:
destination
- The destination directoryname
- The column name- Returns:
- The location
-
makeColumn
public static LocalAppendableColumn makeColumn(@NotNull com.illumon.dataobjects.ColumnDefinition definition, @NotNull File destination, boolean initialize)Make a standalone appendable column using the
StringCacheProvider
obtained viaStringCacheProviders.getAlwaysCreateStringInstance(boolean)
withunbounded = true
. Delegates tomakeColumn(ColumnDefinition, File, boolean, StringCacheProvider)
.Note that this method should be used very sparingly. Appendable columns should usually be created as part of an appendable table. Administrative methods for adding new columns to existing data are the only obvious exception.
- Parameters:
definition
- The column definitiondestination
- The destination directoryinitialize
- Whether this column should initialize the location, or truncate- Returns:
- A standalone appendable column
-
makeColumn
public static LocalAppendableColumn makeColumn(@NotNull com.illumon.dataobjects.ColumnDefinition definition, @NotNull File destination, boolean initialize, @NotNull StringCacheProvider stringCacheProvider)Make a standalone appendable column.
Note that this method should be used very sparingly. Appendable columns should usually be created as part of an appendable table. Administrative methods for adding new columns to existing data are the only obvious exception.
- Parameters:
definition
- The column definitiondestination
- The destination directoryinitialize
- Whether this column should initialize the location, or truncatestringCacheProvider
- The StringCacheProvider to use for this table- Returns:
- A standalone appendable column
- See Also:
TableManagementTools.addColumns(TableDefinition, File, int, String...)
-
make
public static LocalAppendableTable make(@NotNull TableDefinition definition, @NotNull File destination, boolean append)Make a simple stand-alone table using theStringCacheProvider
obtained viaStringCacheProviders.getAlwaysCreateStringInstance(boolean)
withunbounded = true
. Delegates tomake(TableDefinition, File, boolean, StringCacheProvider)
.- Parameters:
definition
- The table definitiondestination
- The destination directoryappend
- Whether this table should append to existing data, or truncate- Returns:
- A standalone LocalAppendableTable
-
make
public static LocalAppendableTable make(@NotNull TableDefinition definition, @NotNull File destination, boolean append, @NotNull StringCacheProvider stringCacheProvider)Make a simple stand-alone table.- Parameters:
definition
- The table definitiondestination
- The destination directoryappend
- Whether this table should append to existing data, or truncatestringCacheProvider
- The StringCacheProvider to use for this table- Returns:
- A standalone LocalAppendableTable
-