Class DbTableLocation

java.lang.Object
com.illumon.iris.db.tables.dataimport.DbTableLocation
All Implemented Interfaces:
Serializable

@Deprecated public class DbTableLocation extends Object implements Serializable
Location for a table on disk plus a bunch of file and disk manipulation methods. Most of this functionality belongs in LocalTablePathManager.
See Also:
  • 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 - namespace
      internalPartition - internal partition value
      columnPartition - column partition value
      tableName - table name
      tableType - the table's TableType
    • DbTableLocation

      @Deprecated public DbTableLocation(String namespace, String internalPartition, String columnPartition, String tableName, DbTableLocation.Destination destination)
    • 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 - namespace
      internalPartition - internal partition value
      columnPartition - column partition value
      tableName - 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 database
      namespace - namespace
      internalPartition - internal partition value
      columnPartition - column partition value
      tableName - 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 database
      namespace - namespace
      internalPartition - internal partition value
      columnPartition - column partition value
      tableName - table name
      tableType - the table's TableType
    • DbTableLocation

      @Deprecated public DbTableLocation(String dbroot, String namespace, @Nullable String internalPartition, String columnPartition, String tableName, @NotNull DbTableLocation.Destination destination)
    • DbTableLocation

      public DbTableLocation(LocalTablePathManager locationManager, FullTableLocationKey tlkey)
      Deprecated.
      Gets a DbTableLocation object with the given LocalTablePathManager and FullTableLocationKey.
      Parameters:
      locationManager - LocalTablePathManager to use
      tlkey - identifiers for the table location - might be a FullTableLocationKey.AggregateTableLocationKey
  • Method Details

    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getDbroot

      public String getDbroot()
      Deprecated.
      Gets the db root directory.
      Returns:
      db root directory
    • getNamespace

      public String getNamespace()
      Deprecated.
      Gets the name of the namespace. (Duplicate of getNamespaceName since DbNamespace is gone)
      Returns:
      namespace
    • getNamespaceName

      public String getNamespaceName()
      Deprecated.
      Gets the name of the namespace.
      Returns:
      namespace name
    • getInternalPartition

      public String getInternalPartition()
      Deprecated.
      Gets the internal partition value.
      Returns:
      internal partition value
    • getPartition

      public String getPartition()
      Deprecated.
      Gets the column partition value.
      Returns:
      column partition value
    • getDate

      @Deprecated public String getDate()
      Deprecated.
    • getTableName

      public String getTableName()
      Deprecated.
      Gets the name of the table.
      Returns:
      table name
    • getTableDestination

      public File getTableDestination()
      Deprecated.
      The File for this table location.
      Returns:
      File for this table location
    • getDestinationType

      public TableType getDestinationType()
      Deprecated.
      Gets the TableType.
      Returns:
      TableType
    • loadTable

      public Table loadTable()
      Deprecated.
      Gets the Table from this DbTableLocation.
      Returns:
      Table from this DbTableLocation
    • writeTable

      public void writeTable(Table t)
      Deprecated.
      Writes the input table to this DbTableLocation.
    • writeTable

      public void writeTable(Table t, Database.StorageFormat storageFormat)
      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

      public TableDefinition getTableDefinition()
      Deprecated.
      Convenience method for getTableDefinition(boolean), with isSystem=true as the parameter.
    • getTableDefinition

      public TableDefinition getTableDefinition(boolean isSystem)
      Deprecated.
      Gets the current TableDefinition 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

      public TableWriter getTableWriter() throws IOException
      Deprecated.
      Convenience method for getTableWriter(boolean), with append=false as the parameter.
      Throws:
      IOException
    • getTableWriter

      public TableWriter getTableWriter(boolean append) throws IOException
      Deprecated.
      only use append=true in an importer when you have a very good reason
      Throws:
      IOException
    • storeImportDetails

      public void storeImportDetails(Properties details)
      Deprecated.
      Stores the import details at this DbTableLocation.
      Parameters:
      details - import details
    • loadImportDetails

      @Deprecated public Properties loadImportDetails()
      Deprecated.
      Returns Properties with import details, if found. Properties might be empty.
    • getSystemSourceChildLocations

      @Deprecated public DbTableLocation[] 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 the TableType of this DbTableLocation is not TableType.SYSTEM_PERMANENT
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object