public class RestService extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
REST_RESPONSE_STATUS_OK |
| Constructor and Description |
|---|
RestService() |
| Modifier and Type | Method and Description |
|---|---|
static List<PartitionDefinition> |
findPartitions(Settings cfg,
org.slf4j.Logger logger)
find StarRocks RDD partitions from StarRocks FE.
|
static Schema |
getSchema(Settings cfg,
org.slf4j.Logger logger)
discover StarRocks table schema from StarRocks FE.
|
static String[] |
parseIdentifier(String tableIdentifier,
org.slf4j.Logger logger)
parse table identifier to array.
|
static Schema |
parseSchema(String response,
org.slf4j.Logger logger)
translate StarRocks FE response to inner
Schema struct. |
public static final int REST_RESPONSE_STATUS_OK
public static String[] parseIdentifier(String tableIdentifier, org.slf4j.Logger logger) throws IllegalArgumentException
tableIdentifier - table identifier stringlogger - LoggerIllegalArgumentException - table identifier is illegalpublic static Schema getSchema(Settings cfg, org.slf4j.Logger logger) throws StarrocksException
cfg - configuration of requestlogger - slf4j loggerStarrocksException - throw when discover failedpublic static Schema parseSchema(String response, org.slf4j.Logger logger) throws StarrocksException
Schema struct.response - StarRocks FE responselogger - LoggerSchema structStarrocksException - throw when translate failedpublic static List<PartitionDefinition> findPartitions(Settings cfg, org.slf4j.Logger logger) throws StarrocksException
cfg - configuration of requestlogger - LoggerStarrocksException - throw when find partition failedCopyright © 2024. All rights reserved.