public class HudiEngine extends Object
Constructor and Description |
---|
HudiEngine() |
Modifier and Type | Method and Description |
---|---|
FeatureGroupCommit |
deleteRecord(org.apache.spark.sql.SparkSession sparkSession,
FeatureGroupBase featureGroup,
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> deleteDF,
Map<String,String> writeOptions) |
void |
reconcileHudiSchema(org.apache.spark.sql.SparkSession sparkSession,
FeatureGroupAlias featureGroupAlias,
Map<String,String> hudiArgs) |
void |
registerTemporaryTable(org.apache.spark.sql.SparkSession sparkSession,
FeatureGroupAlias featureGroupAlias,
Map<String,String> readOptions) |
void |
saveHudiFeatureGroup(org.apache.spark.sql.SparkSession sparkSession,
FeatureGroupBase featureGroup,
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataset,
HudiOperationType operation,
Map<String,String> writeOptions,
Integer validationId) |
Map<String,String> |
setupHudiReadOpts(Long startTimestamp,
Long endTimestamp,
Map<String,String> readOptions) |
boolean |
sparkSchemasMatch(String[] schema1,
String[] schema2) |
void |
streamToHoodieTable(org.apache.spark.sql.SparkSession sparkSession,
StreamFeatureGroup streamFeatureGroup,
Map<String,String> writeOptions) |
public static final String HUDI_SPARK_FORMAT
protected static final String HUDI_BASE_PATH
protected static final String HUDI_TABLE_NAME
protected static final String HUDI_TABLE_STORAGE_TYPE
protected static final String HUDI_TABLE_OPERATION
protected static final String HUDI_KEY_GENERATOR_OPT_KEY
protected static final String HUDI_COMPLEX_KEY_GENERATOR_OPT_VAL
protected static final String HUDI_RECORD_KEY
protected static final String HUDI_PARTITION_FIELD
protected static final String HUDI_PRECOMBINE_FIELD
protected static final String HUDI_HIVE_SYNC_ENABLE
protected static final String HUDI_HIVE_SYNC_TABLE
protected static final String HUDI_HIVE_SYNC_DB
protected static final String HUDI_HIVE_SYNC_MODE
protected static final String HUDI_HIVE_SYNC_MODE_VAL
protected static final String HUDI_HIVE_SYNC_PARTITION_FIELDS
protected static final String HIVE_PARTITION_EXTRACTOR_CLASS_OPT_KEY
protected static final String DEFAULT_HIVE_PARTITION_EXTRACTOR_CLASS_OPT_VAL
protected static final String HIVE_NON_PARTITION_EXTRACTOR_CLASS_OPT_VAL
protected static final String HIVE_AUTO_CREATE_DATABASE_OPT_KEY
protected static final String HIVE_AUTO_CREATE_DATABASE_OPT_VAL
protected static final String HUDI_COPY_ON_WRITE
protected static final String HUDI_QUERY_TYPE_OPT_KEY
protected static final String HUDI_QUERY_TYPE_INCREMENTAL_OPT_VAL
protected static final String HUDI_QUERY_TYPE_SNAPSHOT_OPT_VAL
protected static final String HUDI_QUERY_TIME_TRAVEL_AS_OF_INSTANT
protected static final String HUDI_BEGIN_INSTANTTIME_OPT_KEY
protected static final String HUDI_END_INSTANTTIME_OPT_KEY
protected static final String HUDI_WRITE_INSERT_DROP_DUPLICATES
protected static final String PAYLOAD_CLASS_OPT_KEY
protected static final String PAYLOAD_CLASS_OPT_VAL
protected static final String HUDI_KAFKA_TOPIC
protected static final String COMMIT_METADATA_KEYPREFIX_OPT_KEY
protected static final String DELTASTREAMER_CHECKPOINT_KEY
protected static final String INITIAL_CHECKPOINT_STRING
protected static final String FEATURE_GROUP_SCHEMA
protected static final String FEATURE_GROUP_ENCODED_SCHEMA
protected static final String FEATURE_GROUP_COMPLEX_FEATURES
protected static final String KAFKA_SOURCE
protected static final String SCHEMA_PROVIDER
protected static final String DELTA_STREAMER_TRANSFORMER
protected static final String DELTA_SOURCE_ORDERING_FIELD_OPT_KEY
protected static final String MIN_SYNC_INTERVAL_SECONDS
protected static final String SPARK_MASTER
protected static final String PROJECT_ID
protected static final String FEATURE_STORE_NAME
protected static final String FEATURE_GROUP_NAME
protected static final String FEATURE_GROUP_VERSION
protected static final String FEATURE_GROUP_KAFKA_OFFSET_RESET
protected static final String FUNCTION_TYPE
protected static final String STREAMING_QUERY
public void saveHudiFeatureGroup(org.apache.spark.sql.SparkSession sparkSession, FeatureGroupBase featureGroup, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> dataset, HudiOperationType operation, Map<String,String> writeOptions, Integer validationId) throws IOException, FeatureStoreException, ParseException
public FeatureGroupCommit deleteRecord(org.apache.spark.sql.SparkSession sparkSession, FeatureGroupBase featureGroup, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> deleteDF, Map<String,String> writeOptions) throws IOException, FeatureStoreException, ParseException
public void registerTemporaryTable(org.apache.spark.sql.SparkSession sparkSession, FeatureGroupAlias featureGroupAlias, Map<String,String> readOptions)
public Map<String,String> setupHudiReadOpts(Long startTimestamp, Long endTimestamp, Map<String,String> readOptions)
public void reconcileHudiSchema(org.apache.spark.sql.SparkSession sparkSession, FeatureGroupAlias featureGroupAlias, Map<String,String> hudiArgs) throws FeatureStoreException
FeatureStoreException
Copyright © 2023. All rights reserved.