public class PinotConfig extends SourceConfig
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
QUERY_ARGUMENTS |
static java.lang.String |
QUERY_KEY_COLUMNS |
static java.lang.String |
QUERY_TEMPLATE |
static java.lang.String |
RESOURCE_NAME |
_sourceName, TYPE| Constructor and Description |
|---|
PinotConfig(java.lang.String sourceName,
java.lang.String resourceName,
java.lang.String queryTemplate,
java.lang.String[] queryArguments,
java.lang.String[] queryKeyColumns)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String[] |
getQueryArguments() |
java.lang.String[] |
getQueryKeyColumns() |
java.lang.String |
getQueryTemplate() |
java.lang.String |
getResourceName() |
SourceType |
getSourceType() |
int |
hashCode() |
java.lang.String |
toString() |
getSourceNamepublic static final java.lang.String RESOURCE_NAME
public static final java.lang.String QUERY_TEMPLATE
public static final java.lang.String QUERY_ARGUMENTS
public static final java.lang.String QUERY_KEY_COLUMNS
public PinotConfig(@Nonnull
java.lang.String sourceName,
@Nonnull
java.lang.String resourceName,
@Nonnull
java.lang.String queryTemplate,
@Nonnull
java.lang.String[] queryArguments,
@Nonnull
java.lang.String[] queryKeyColumns)
sourceName - the name of the source referenced by anchors in the feature definitionresourceName - the service name in the Pinot D2 config for the queried Pinot tablequeryTemplate - the sql query template to fetch data from Pinot table, with “?” as placeholders for queryArguments replacement at runtimequeryArguments - the array of key expression, whose element is used to replace the "?" in queryTemplate in the same orderqueryKeyColumns - the array of String for Pinot table column names that correspond to key argument defined queryArguments in the same orderpublic java.lang.String getResourceName()
public java.lang.String getQueryTemplate()
public java.lang.String[] getQueryArguments()
public java.lang.String[] getQueryKeyColumns()
public SourceType getSourceType()
getSourceType in class SourceConfigpublic boolean equals(java.lang.Object o)
equals in class SourceConfigpublic int hashCode()
hashCode in class SourceConfigpublic java.lang.String toString()
toString in class java.lang.Object