Class DbTableLocation
java.lang.Object
com.illumon.iris.db.tables.dataimport.DbTableLocation
- All Implemented Interfaces:
Serializable
@Deprecated public class DbTableLocation extends Object implements 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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbTableLocation.Destination
Deprecated.useTableType
instead. -
Constructor Summary
Constructors Constructor Description DbTableLocation(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 Type Method Description void
deleteTable()
Deprecated.Deletes the table at this DbTableLocation.boolean
equals(Object o)
Deprecated.String
getDate()
Deprecated.String
getDbroot()
Deprecated.Gets the db root directory.TableType
getDestinationType()
Deprecated.Gets theTableType
.String
getInternalPartition()
Deprecated.Gets the internal partition value.String
getNamespace()
Deprecated.Gets the name of the namespace.String
getNamespaceName()
Deprecated.Gets the name of the namespace.String
getPartition()
Deprecated.Gets the column partition value.DbTableLocation[]
getSystemSourceChildLocations()
Deprecated.TableDefinition
getTableDefinition()
Deprecated.Convenience method forgetTableDefinition(boolean)
, with isSystem=true as the parameter.TableDefinition
getTableDefinition(boolean isSystem)
Deprecated.Gets the currentTableDefinition
for this DbTableLocation, from the schema service.File
getTableDestination()
Deprecated.TheFile
for this table location.String
getTableName()
Deprecated.Gets the name of the table.TableWriter
getTableWriter()
Deprecated.Convenience method forgetTableWriter(boolean)
, with append=false as the parameter.TableWriter
getTableWriter(boolean append)
Deprecated.only use append=true in an importer when you have a very good reasonint
hashCode()
Deprecated.Properties
loadImportDetails()
Deprecated.Table
loadTable()
Deprecated.Gets theTable
from this DbTableLocation.void
storeImportDetails(Properties details)
Deprecated.Stores the import details at this DbTableLocation.String
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.
-