public final class RestliConfig extends SourceConfig
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENTITY_TYPE
Deprecated.
As of beta, this field is deprecated in favor of KEY_EXPR(keyExpr)
|
static java.lang.String |
FILE |
static java.lang.String |
FINDER |
static java.lang.String |
JSON |
static java.lang.String |
JSON_ARRAY |
static java.lang.String |
JSON_ARRAY_ARRAY |
static java.lang.String |
KEY_EXPR |
static java.lang.String |
MVEL_KEY |
static java.lang.String |
PATH_SPEC |
static java.lang.String |
REQ_PARAMS |
static java.lang.String |
RESOUCE_NAME
Deprecated.
As of beta, the field name is a typo and will be removed
|
static java.lang.String |
RESOURCE_NAME |
_sourceName, TYPE| Constructor and Description |
|---|
RestliConfig(java.lang.String sourceName,
java.lang.String resourceName,
java.util.Map<java.lang.String,java.lang.Object> reqParams,
com.linkedin.data.schema.PathSpec pathSpec,
java.lang.String finder)
Construct a finder based
RestliConfig for non-association resources where there is no association key required |
RestliConfig(java.lang.String sourceName,
java.lang.String resourceName,
java.lang.String keyExpr,
java.util.Map<java.lang.String,java.lang.Object> reqParams,
com.linkedin.data.schema.PathSpec pathSpec)
Constructor with keyExpr only
|
RestliConfig(java.lang.String sourceName,
java.lang.String resourceName,
java.lang.String keyExpr,
java.util.Map<java.lang.String,java.lang.Object> reqParams,
com.linkedin.data.schema.PathSpec pathSpec,
java.lang.String finder)
Constructor for creating a new instance of
RestliConfig with both keyExpr |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.lang.String> |
getFinder() |
java.lang.String |
getKeyExpr()
Deprecated.
this might return null, please use
getOptionalKeyExpr() instead |
java.util.Optional<java.lang.String> |
getOptionalKeyExpr() |
java.util.Optional<com.linkedin.data.schema.PathSpec> |
getPathSpec() |
java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> |
getReqParams() |
java.lang.String |
getResourceName() |
SourceType |
getSourceType() |
int |
hashCode() |
java.lang.String |
toString() |
getSourceNamepublic static final java.lang.String RESOURCE_NAME
@Deprecated public static final java.lang.String RESOUCE_NAME
public static final java.lang.String KEY_EXPR
@Deprecated public static final java.lang.String ENTITY_TYPE
public static final java.lang.String REQ_PARAMS
public static final java.lang.String PATH_SPEC
public static final java.lang.String FINDER
public static final java.lang.String JSON
public static final java.lang.String JSON_ARRAY
public static final java.lang.String JSON_ARRAY_ARRAY
public static final java.lang.String MVEL_KEY
public static final java.lang.String FILE
public RestliConfig(@Nonnull
java.lang.String sourceName,
@Nonnull
java.lang.String resourceName,
@Nonnull
java.lang.String keyExpr,
java.util.Map<java.lang.String,java.lang.Object> reqParams,
com.linkedin.data.schema.PathSpec pathSpec)
sourceName - the name of the source and it is referenced by the anchor in the feature definitionresourceName - Name of the Rest.Li resourcekeyExpr - Key expressionreqParams - request parameters specified as a MappathSpec - PathSpecpublic RestliConfig(@Nonnull
java.lang.String sourceName,
@Nonnull
java.lang.String resourceName,
java.util.Map<java.lang.String,java.lang.Object> reqParams,
com.linkedin.data.schema.PathSpec pathSpec,
@Nonnull
java.lang.String finder)
RestliConfig for non-association resources where there is no association key requiredsourceName - the name of the source and it is referenced by the anchor in the feature definitionresourceName - Name of the Rest.Li resourcereqParams - request parameters specified as a MappathSpec - PathSpecfinder - the finder method name of the resource.public RestliConfig(java.lang.String sourceName,
java.lang.String resourceName,
java.lang.String keyExpr,
java.util.Map<java.lang.String,java.lang.Object> reqParams,
com.linkedin.data.schema.PathSpec pathSpec,
java.lang.String finder)
RestliConfig with both keyExprsourceName - the name of the source and it is referenced by the anchor in the feature definitionkeyExpr - Key expression for the resource.resourceName - Name of the Rest.Li resourcereqParams - request parameters specified as a MappathSpec - PathSpecfinder - the finder method name of the resource.public java.lang.String getResourceName()
@Deprecated public java.lang.String getKeyExpr()
getOptionalKeyExpr() insteadpublic java.util.Optional<java.lang.String> getOptionalKeyExpr()
public java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> getReqParams()
public java.util.Optional<com.linkedin.data.schema.PathSpec> getPathSpec()
public java.util.Optional<java.lang.String> getFinder()
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