public class SecondaryIndexManager extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
create(HoodieTableMetaClient metaClient,
String indexName,
String indexType,
boolean ignoreIfExists,
LinkedHashMap<String,Map<String,String>> columns,
Map<String,String> options)
Create a secondary index for hoodie table, two steps will be performed:
1.
|
void |
drop(HoodieTableMetaClient metaClient,
String indexName,
boolean ignoreIfNotExists)
Drop a secondary index by index name
|
static SecondaryIndexManager |
getInstance() |
void |
refresh(HoodieTableMetaClient metaClient,
String indexName)
Refresh the specific secondary index
|
Option<List<HoodieSecondaryIndex>> |
show(HoodieTableMetaClient metaClient)
Show secondary indexes from hoodie table
|
public static SecondaryIndexManager getInstance()
public void create(HoodieTableMetaClient metaClient, String indexName, String indexType, boolean ignoreIfExists, LinkedHashMap<String,Map<String,String>> columns, Map<String,String> options)
metaClient - Hoodie table meta clientindexName - The unique secondary index nameindexType - Index typeignoreIfExists - Whether ignore the creation if the specific secondary index existscolumns - The columns referenced by this secondary index, each column
has its own optionsoptions - Options for this secondary indexpublic void drop(HoodieTableMetaClient metaClient, String indexName, boolean ignoreIfNotExists)
metaClient - Hoodie table meta clientindexName - The unique secondary index nameignoreIfNotExists - Whether ignore drop if the specific secondary index no existspublic Option<List<HoodieSecondaryIndex>> show(HoodieTableMetaClient metaClient)
metaClient - Hoodie table meta clientpublic void refresh(HoodieTableMetaClient metaClient, String indexName)
metaClient - Hoodie table meta clientindexName - The target secondary index nameCopyright © 2024 The Apache Software Foundation. All rights reserved.