Class DbTableLocation
java.lang.Object
com.illumon.iris.db.tables.dataimport.DbTableLocation
- All Implemented Interfaces:
Serializable
Deprecated.
Location for a table on disk plus a bunch of file and disk manipulation methods.
Most of this functionality belongs in
LocalTablePathManager
.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDbTableLocation
(LocalTablePathManager locationManager, FullTableLocationKey tlkey) Deprecated.Gets a DbTableLocation object with the given LocalTablePathManager and FullTableLocationKey.DbTableLocation
(String namespace, String internalPartition, String columnPartition, String tableName) Deprecated.Gets a DbTableLocation object with the given namespace, internal partition, column partition, and table name.DbTableLocation
(String namespace, String internalPartition, String columnPartition, String tableName, DbTableLocation.Destination destination) Deprecated.DbTableLocation
(String namespace, String internalPartition, String columnPartition, String tableName, TableType tableType) Deprecated.Gets a DbTableLocation object with the given namespace, internal partition, column partition, table name, and tableType.DbTableLocation
(String dbroot, String namespace, String internalPartition, String columnPartition, String tableName) Deprecated.Gets a DbTableLocation object with the given db root directory, namespace, internal partition, column partition, and table name.DbTableLocation
(String dbroot, String namespace, String internalPartition, String columnPartition, String tableName, DbTableLocation.Destination destination) DbTableLocation
(String dbroot, String namespace, String internalPartition, String columnPartition, String tableName, TableType tableType) Deprecated.Gets a DbTableLocation object with the given db root directory, namespace, internal partition, column partition, table name, and tableType. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Deletes the table at this DbTableLocation.boolean
Deprecated.getDate()
Deprecated.Deprecated.Gets the db root directory.Deprecated.Gets theTableType
.Deprecated.Gets the internal partition value.Deprecated.Gets the name of the namespace.Deprecated.Gets the name of the namespace.Deprecated.Gets the column partition value.Deprecated.Deprecated.Convenience method forgetTableDefinition(boolean)
, with isSystem=true as the parameter.getTableDefinition
(boolean isSystem) Deprecated.Gets the currentTableDefinition
for this DbTableLocation, from the schema service.Deprecated.TheFile
for this table location.Deprecated.Gets the name of the table.Deprecated.Convenience method forgetTableWriter(boolean)
, with append=false as the parameter.getTableWriter
(boolean append) Deprecated.only use append=true in an importer when you have a very good reasonint
hashCode()
Deprecated.Deprecated.Deprecated.Gets theTable
from this DbTableLocation.void
storeImportDetails
(Properties details) Deprecated.Stores the import details at this DbTableLocation.toString()
Deprecated.void
writeTable
(Table t) Deprecated.Writes the input table to this DbTableLocation.void
writeTable
(Table t, Database.StorageFormat storageFormat) Deprecated.Writes the input table to this DbTableLocation.
-
Constructor Details
-
DbTableLocation
public DbTableLocation(String namespace, String internalPartition, String columnPartition, String tableName, TableType tableType) Deprecated.Gets a DbTableLocation object with the given namespace, internal partition, column partition, table name, and tableType.The default root directory is used.
- Parameters:
namespace
- namespaceinternalPartition
- internal partition valuecolumnPartition
- column partition valuetableName
- table nametableType
- the table'sTableType
-
DbTableLocation
@Deprecated public DbTableLocation(String namespace, String internalPartition, String columnPartition, String tableName, DbTableLocation.Destination destination) Deprecated.Convert destination to aTableType
and delegate toDbTableLocation(String, String, String, String, TableType)
-
DbTableLocation
public DbTableLocation(String namespace, String internalPartition, String columnPartition, String tableName) Deprecated.Gets a DbTableLocation object with the given namespace, internal partition, column partition, and table name.The default root directory and the default destination are used.
- Parameters:
namespace
- namespaceinternalPartition
- internal partition valuecolumnPartition
- column partition valuetableName
- table name
-
DbTableLocation
public DbTableLocation(String dbroot, String namespace, String internalPartition, String columnPartition, String tableName) Deprecated.Gets a DbTableLocation object with the given db root directory, namespace, internal partition, column partition, and table name.The default destination is used.
- Parameters:
dbroot
- root directory of the databasenamespace
- namespaceinternalPartition
- internal partition valuecolumnPartition
- column partition valuetableName
- table name
-
DbTableLocation
public DbTableLocation(String dbroot, String namespace, @Nullable String internalPartition, String columnPartition, String tableName, @NotNull TableType tableType) Deprecated.Gets a DbTableLocation object with the given db root directory, namespace, internal partition, column partition, table name, and tableType.- Parameters:
dbroot
- root directory of the databasenamespace
- namespaceinternalPartition
- internal partition valuecolumnPartition
- column partition valuetableName
- table nametableType
- the table'sTableType
-
DbTableLocation
@Deprecated public DbTableLocation(String dbroot, String namespace, @Nullable String internalPartition, String columnPartition, String tableName, @NotNull DbTableLocation.Destination destination) Convert destination to aTableType
and delegate toDbTableLocation(String, String, String, String, String, TableType)
-
DbTableLocation
Deprecated.Gets a DbTableLocation object with the given LocalTablePathManager and FullTableLocationKey.- Parameters:
locationManager
- LocalTablePathManager to usetlkey
- identifiers for the table location - might be aFullTableLocationKey.AggregateTableLocationKey
-
-
Method Details
-
toString
Deprecated. -
getDbroot
Deprecated.Gets the db root directory.- Returns:
- db root directory
-
getNamespace
Deprecated.Gets the name of the namespace. (Duplicate of getNamespaceName since DbNamespace is gone)- Returns:
- namespace
-
getNamespaceName
Deprecated.Gets the name of the namespace.- Returns:
- namespace name
-
getInternalPartition
Deprecated.Gets the internal partition value.- Returns:
- internal partition value
-
getPartition
Deprecated.Gets the column partition value.- Returns:
- column partition value
-
getDate
Deprecated. -
getTableName
Deprecated.Gets the name of the table.- Returns:
- table name
-
getTableDestination
Deprecated.TheFile
for this table location.- Returns:
File
for this table location
-
getDestinationType
Deprecated.Gets theTableType
.- Returns:
TableType
-
loadTable
Deprecated.Gets theTable
from this DbTableLocation.- Returns:
Table
from this DbTableLocation
-
writeTable
Deprecated.Writes the input table to this DbTableLocation. -
writeTable
Deprecated.Writes the input table to this DbTableLocation. -
deleteTable
public void deleteTable()Deprecated.Deletes the table at this DbTableLocation. This must be a fully-defined DbTableLocation with namespace, table name, internal partition, and column partition. -
getTableDefinition
Deprecated.Convenience method forgetTableDefinition(boolean)
, with isSystem=true as the parameter. -
getTableDefinition
Deprecated.Gets the currentTableDefinition
for this DbTableLocation, from the schema service.- Parameters:
isSystem
- if true, only System table definitions will be located. If false, only user table definitions will be located.- Returns:
TableDefinition
for this DbTableLocation, according to System/User namespaces according to isSystem.
-
getTableWriter
Deprecated.Convenience method forgetTableWriter(boolean)
, with append=false as the parameter.- Throws:
IOException
-
getTableWriter
Deprecated.only use append=true in an importer when you have a very good reason- Throws:
IOException
-
storeImportDetails
Deprecated.Stores the import details at this DbTableLocation.- Parameters:
details
- import details
-
loadImportDetails
Deprecated.Returns Properties with import details, if found. Properties might be empty. -
getSystemSourceChildLocations
Deprecated.Gets an array of all DbTableLocations for all existing system table files for this DbTableLocation. This will search all internal partition directories for data for this DbTableLocation's. This is only usable for DbTableLocation instances which do not specify an internal partition- Returns:
- array of all DbTableLocations for all existing system table files for this DBTableLocation
- Throws:
com.fishlib.base.verify.RequirementFailure
- if the internal partition of this DbTableLocation is not null or if theTableType
of this DbTableLocation is notTableType.SYSTEM_PERMANENT
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
FullTableLocationKey
andLocalTablePathManager