public abstract class DataAttributes extends Object
Provides interfaces to access different attributes of the underlying data, including the attributes provided by the user, as well as different (system) properties that govern the underlying data, such as the record columns, resources used, etc.
This interface is used only for MaxCompute framework to encapsulate the internal representation of attributes. It is not intended for user to implement it.
| Constructor and Description |
|---|
DataAttributes() |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<String,String> |
getAttributes()
Get a copy of all user-specified attributes.
|
abstract String |
getCustomizedDataLocation()
Get the customized external data location that describes external data storage location other than
storage types with built-in support (such as Aliyun OSS/TableStore), user is responsible for parsing and
connecting to customized data location in self-defined Extractor and/or Outputer
|
abstract Column[] |
getFullTableColumns()
Getter for record columns describing the FULL schema of underlying physical data, represented by the
(external) table
|
abstract Properties |
getHiveTableProperties() |
Properties |
getHiveTableProperties(boolean ignored)
Deprecated.
|
abstract int[] |
getNeededIndexes()
Getter for needed indexes, this can be used to skip deserialization of non-needed column(s).
|
abstract Column[] |
getRecordColumns()
Getter for columns describing expected Record schema: un-used columns may have been pruned and this schema
therefore can be either
1.
|
abstract HashSet<String> |
getResources()
Getter for set of resources.
|
abstract String |
getValueByKey(String key)
Get the attribute value associated with the given key, return null if key not found
|
abstract void |
verifySchema(OdpsType[] expectedSchemas)
Check if the Column schemas passed in by data attributes matched the expectation.
|
public abstract String getValueByKey(String key)
public abstract Map<String,String> getAttributes()
public abstract String getCustomizedDataLocation()
@Deprecated public Properties getHiveTableProperties(boolean ignored)
ignored - this argument will be ignoredpublic abstract Properties getHiveTableProperties()
public abstract Column[] getRecordColumns()
public abstract Column[] getFullTableColumns()
public abstract int[] getNeededIndexes()
public abstract void verifySchema(OdpsType[] expectedSchemas)
Copyright © 2021 Alibaba Cloud Computing. All rights reserved.