public class ParquetSchema extends Object
| 构造器和说明 |
|---|
ParquetSchema()
Initialize the ParquetSchema instance
|
ParquetSchema(String columnName,
DataType type)
Initialize the ParquetSchema instance
|
ParquetSchema(String columnName,
String ossColumnName,
DataType type)
Initialize a ParquetSchema instance
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getColumnName()
Get the column names in the OTS table
|
OSSFileEncoding |
getEncode()
Get the encoding type of this column
|
String |
getOssColumnName()
Get the column names delivered to OSS
|
DataType |
getType()
Get the column type in the OTS table
|
String |
getTypeExtend()
Extended functionality, more Parquet types will be supported in the future.
|
void |
setColumnName(String columnName)
Set the column name in the OTS table
|
void |
setEncode(OSSFileEncoding encode)
Set the encoding type for this column
|
void |
setOssColumnName(String ossColumnName)
Set the column name to be delivered to OSS
|
void |
setType(DataType type)
Set the column type in the OTS table
|
void |
setTypeExtend(String typeExtend)
Get the parquet extended type
Not supported yet
|
String |
toString() |
public ParquetSchema()
public ParquetSchema(String columnName, DataType type)
columnName - Column name in the OTS tabletype - Data type of this column in the OTS tablepublic String getColumnName()
public void setColumnName(String columnName)
columnName - The column name in the OTS tablepublic String getOssColumnName()
public void setOssColumnName(String ossColumnName)
ossColumnName - Column name on OSSpublic DataType getType()
public void setType(DataType type)
type - The type of this column in the OTS tablepublic OSSFileEncoding getEncode()
public void setEncode(OSSFileEncoding encode)
encode - Set the encoding type for this columnpublic String getTypeExtend()
public void setTypeExtend(String typeExtend)
typeExtend - parquet extended typeCopyright © 2025. All Rights Reserved.