public class BinaryToStringCastRule extends Object
DataTypeFamily.BINARY_STRING
to DataTypeFamily.CHARACTER_STRING
cast rule.Modifier and Type | Method and Description |
---|---|
CastExecutor<byte[],BinaryString> |
create(DataType inputType,
DataType targetType)
Create a
CastExecutor starting from the provided input type. |
CastRulePredicate |
getPredicateDefinition() |
public CastExecutor<byte[],BinaryString> create(DataType inputType, DataType targetType)
CastRule
CastExecutor
starting from the provided input type. The returned CastExecutor
assumes the input value is using the internal data type, and it's a valid value
for the provided targetType
.public CastRulePredicate getPredicateDefinition()
getPredicateDefinition
in interface CastRule<IN,OUT>
for more details about a cast rule predicate definition.
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.