public abstract class BaseMetastoreTableOperations extends java.lang.Object implements TableOperations
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICEBERG_TABLE_TYPE_VALUE |
static java.lang.String |
METADATA_LOCATION_PROP |
static java.lang.String |
PREVIOUS_METADATA_LOCATION_PROP |
static java.lang.String |
TABLE_TYPE_PROP |
Modifier | Constructor and Description |
---|---|
protected |
BaseMetastoreTableOperations(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
TableMetadata |
current()
Return the currently loaded table metadata, without checking for updates.
|
java.lang.String |
currentMetadataLocation() |
int |
currentVersion() |
FileIO |
io() |
LocationProvider |
locationProvider()
Returns a
LocationProvider that supplies locations for new new data files. |
java.lang.String |
metadataFileLocation(java.lang.String filename)
Given the name of a metadata file, obtain the full path of that file using an appropriate base
location of the implementation's choosing.
|
protected void |
refreshFromMetadataLocation(java.lang.String newLocation) |
protected void |
refreshFromMetadataLocation(java.lang.String newLocation,
int numRetries) |
protected void |
requestRefresh() |
protected java.lang.String |
writeNewMetadata(TableMetadata metadata,
int newVersion) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
commit, encryption, newSnapshotId, refresh
public static final java.lang.String TABLE_TYPE_PROP
public static final java.lang.String ICEBERG_TABLE_TYPE_VALUE
public static final java.lang.String METADATA_LOCATION_PROP
public static final java.lang.String PREVIOUS_METADATA_LOCATION_PROP
protected BaseMetastoreTableOperations(org.apache.hadoop.conf.Configuration conf)
public TableMetadata current()
TableOperations
current
in interface TableOperations
public java.lang.String currentMetadataLocation()
public int currentVersion()
protected void requestRefresh()
protected java.lang.String writeNewMetadata(TableMetadata metadata, int newVersion)
protected void refreshFromMetadataLocation(java.lang.String newLocation)
protected void refreshFromMetadataLocation(java.lang.String newLocation, int numRetries)
public java.lang.String metadataFileLocation(java.lang.String filename)
TableOperations
The file may not exist yet, in which case the path should be returned as if it were to be created
by e.g. FileIO.newOutputFile(String)
.
metadataFileLocation
in interface TableOperations
public FileIO io()
io
in interface TableOperations
FileIO
to read and write table data and metadata filespublic LocationProvider locationProvider()
TableOperations
LocationProvider
that supplies locations for new new data files.locationProvider
in interface TableOperations