public class SecondaryIndexUtils extends Object
| Constructor and Description |
|---|
SecondaryIndexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<HoodieSecondaryIndex> |
fromJsonString(String jsonStr)
Parse secondary index str to List
|
static <T> T |
fromJsonString(String jsonStr,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static Option<List<HoodieSecondaryIndex>> |
getSecondaryIndexes(HoodieTableMetaClient metaClient)
Get secondary index metadata for this table
|
static String |
toJsonString(Object value) |
public static Option<List<HoodieSecondaryIndex>> getSecondaryIndexes(HoodieTableMetaClient metaClient)
metaClient - HoodieTableMetaClientpublic static List<HoodieSecondaryIndex> fromJsonString(String jsonStr)
jsonStr - Secondary indexes with json formatpublic static <T> T fromJsonString(String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> type) throws Exception
Exceptionpublic static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2024 The Apache Software Foundation. All rights reserved.