Class ImporterDatabase
java.lang.Object
com.illumon.iris.db.tables.databases.BaseDatabase
com.illumon.iris.db.tables.databases.AbstractDatabase
com.illumon.iris.db.tables.databases.OnDiskDatabase
com.illumon.iris.db.tables.databases.OnDiskQueryDatabase
com.illumon.iris.db.tables.databases.ImporterDatabase
- All Implemented Interfaces:
Database
public class ImporterDatabase extends OnDiskQueryDatabase
Wrap
OnDiskQueryDatabase
, ensuring the user context has been set.
If a user context is supplied, it will be used, otherwise default authentication
will be attempted.-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.tables.databases.OnDiskDatabase
OnDiskDatabase.AuditEventLogDetails
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.databases.Database
Database.LogHandle, Database.StorageFormat
-
Field Summary
Fields inherited from class com.illumon.iris.db.tables.databases.OnDiskDatabase
DEFAULT_ROOT_DIRECTORY, locationManager, log, ON_DISK_DATABASE_ROOT_DIRECTORY_PROP, permissionFilterProvider, TABLE_DEFINITIONS_TABLE_DEFINITION, userContext
-
Constructor Summary
Constructors Constructor Description ImporterDatabase(com.fishlib.io.logger.Logger log)
Create an ImporterDatabase with default rootDirectory and local TableDataService configuration, and default authentication.ImporterDatabase(com.fishlib.io.logger.Logger log, com.fishlib.auth.UserContext userContext)
Create an ImporterDatabase with default rootDirectory and local TableDataService configuration, and authenticate with the given user context.ImporterDatabase(com.fishlib.io.logger.Logger log, com.fishlib.auth.UserContext userContext, String tableDataServiceName)
Create an ImporterDatabase with default rootDirectory and the named TableDataService configuration.ImporterDatabase(com.fishlib.io.logger.Logger log, File rootDirectory)
Deprecated.this constructor is considered harmful, attempts to pass rootDirectory other than the default will fail.ImporterDatabase(com.fishlib.io.logger.Logger log, File rootDirectory, com.fishlib.auth.UserContext userContext)
Deprecated.this constructor is considered harmful, attempts to pass rootDirectory other than the default will fail. -
Method Summary
Modifier and Type Method Description static ImporterDatabase
usingLocalTableDataService(com.fishlib.io.logger.Logger log)
Create an ImporterDatabase using the default root directory and authentication, and the default local TableDataService.Methods inherited from class com.illumon.iris.db.tables.databases.OnDiskQueryDatabase
appendColumnPartition, appendTable, checkAllowAddColumnPartition, checkAllowAddNamespace, checkAllowAddSchema, checkAllowCleanupNamespace, checkAllowDeleteColumnPartition, checkAllowIntradayOperation, checkAllowRemoveNamespace, checkAllowRemoveTable, checkAllowRemoveTableCentral, checkAllowRemoveTableDefinition, checkAllowRemoveTableDefinition, checkAllowReplaceColumnPartition, checkAllowReplaceTable, checkAllowReplaceTableDefinition, closeAndDeleteCentral, closeAndDeleteCentral, deleteBackupTable, deleteColumnPartition, deleteTable, getIntradayPartitions, getIntradayTableV2, getIntradayTableV2, getLastByTable, getTableDataService, hasData, installShadowTable, moveTableToBackup, overwriteColumnPartition, reloadData, removeTable, removeTablePartition, replaceTable, replaceTablePartition, restoreTable, rollbackTable, setWatchdogMillis, setWatchdogTimeoutProcedure, storeColumnPartition, storeShadowTable, storeTable, verifyNamespace
Methods inherited from class com.illumon.iris.db.tables.databases.OnDiskDatabase
addTable, addTableDefinition, addTablePartition, appendCentral, appendTable, appendTablePartition, checkAllowAddTable, checkAllowAddTableCentral, deleteMatchingTables, deleteNamespace, deleteTables, getAuditEventLogLogger, getCatalog, getColumnDefinitionsTable, getColumnPartitionTableWriter, getIntradayPartitions, getIntradayPartitionsAsTable, getIntradayTableV2, getIntradayTableV2, getIntradayTableV2, getNamespaces, getPermissionFilterProvider, getRootDirectory, getSchemaService, getSystemNamespaces, getTableDefinition, getTableDefinitionsTable, getTableNames, getTableV2, getTableWriter, getUserContext, getUserNamespaces, hasImportedData, hasIntradayData, hasIntradayTable, hasNamespace, hasTable, logPartitionTableIncremental, logPartitionTableIncremental, logPartitionTableSnapshot, logPartitionTableSnapshot, removeTableDefinition, repairMetadata, repairMetadata, repairMetadata, replaceTableDefinition, setAuditEventLogger, setUserContext, setUserContextAndFilterProvider
Methods inherited from class com.illumon.iris.db.tables.databases.AbstractDatabase
executeQuery, gc, getClientHost, getErrorLog, getProcessInfoId, getReplayer, getReplayer, getServerHost, getWorkerName, importClass, importStatic, logPartitionTableSnapshot, logPartitionTableSnapshot, makeRemote, mr, shutdown, startup
Methods inherited from class com.illumon.iris.db.tables.databases.BaseDatabase
addPartitionedTableDefinition, addPartitionedTableDefinition, addPartitionedTableDefinitionIfAbsent, addPartitionedTableDefinitionIfAbsent, addTablePartition, addTablePartitionAndDefinition, addTablePartitionAndDefinition, appendCentral, appendTablePartition, removeTablePartition, replaceTablePartition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.tables.databases.Database
addColumnPartitionAndDefinition, addColumnPartitionAndDefinition, addTable, addTablePartition, addTablePartition, getIntradayTable, getIntradayTable, getIntradayTable, getIntradayTable, getIntradayTable, getIntradayTable, getIntradayTableV2, getIntradayTableV2, getIntradayTableV2, getIntradayTableV2, getReplayer, getReplayer, getReplayer, getTable, i, i, i, i, i, i, i2, i2, i2, i2, i2, i2, replaceTable, replaceTablePartition, replaceTablePartition, rm, t, t2, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable, timeTable
-
Constructor Details
-
ImporterDatabase
public ImporterDatabase(@NonNull com.fishlib.io.logger.Logger log)Create an ImporterDatabase with default rootDirectory and local TableDataService configuration, and default authentication.- Parameters:
log
- the logger to use
-
ImporterDatabase
public ImporterDatabase(@NonNull com.fishlib.io.logger.Logger log, @NonNull com.fishlib.auth.UserContext userContext)Create an ImporterDatabase with default rootDirectory and local TableDataService configuration, and authenticate with the given user context.- Parameters:
log
- the logger to useuserContext
- set this user context
-
ImporterDatabase
public ImporterDatabase(@NonNull com.fishlib.io.logger.Logger log, @Nullable com.fishlib.auth.UserContext userContext, @NonNull String tableDataServiceName)Create an ImporterDatabase with default rootDirectory and the named TableDataService configuration. If userContext is supplied, use it to authenticate.- Parameters:
log
- the logger to useuserContext
- optional: set this user contexttableDataServiceName
- initialize the TableDataService with this configuration name.
-
ImporterDatabase
@Deprecated public ImporterDatabase(@NonNull com.fishlib.io.logger.Logger log, @NonNull File rootDirectory)Deprecated.this constructor is considered harmful, attempts to pass rootDirectory other than the default will fail. UseImporterDatabase(Logger)
orusingLocalTableDataService(Logger)
instead.Create an ImporterDatabase with the named rootDirectory and default local TableDataService.- Parameters:
log
- the logger to userootDirectory
- initialize locations with this database root directory.
-
ImporterDatabase
@Deprecated public ImporterDatabase(com.fishlib.io.logger.Logger log, File rootDirectory, com.fishlib.auth.UserContext userContext)Deprecated.this constructor is considered harmful, attempts to pass rootDirectory other than the default will fail. UseImporterDatabase(Logger, UserContext)
instead.Create an ImporterDatabase with the named rootDirectory and given userContext, and the default local TableDataService.- Parameters:
log
- the logger to userootDirectory
- initialize locations with this database root directory.userContext
- set this user context
-
-
Method Details
-
usingLocalTableDataService
Create an ImporterDatabase using the default root directory and authentication, and the default local TableDataService.- Parameters:
log
- the logger to use- Returns:
- the new ImporterDatabase.
-