View Source argo_scalar_value (argo v1.0.8)

Summary

Types

-type inner() ::
    {boolean, boolean()} |
    {bytes, binary()} |
    {desc, argo_desc_value:t()} |
    {fixed, binary()} |
    {float64, float()} |
    {string, unicode:unicode_binary()} |
    {varint, argo_types:i64()}.
-type t() :: #argo_scalar_value{inner :: argo_scalar_value:inner()}.

Functions

-spec boolean(boolean()) -> ScalarValue when ScalarValue :: t().
-spec bytes(binary()) -> ScalarValue when ScalarValue :: t().
Link to this function

deduplicate_by_default(ScalarValue)

View Source
-spec deduplicate_by_default(ScalarValue) -> boolean() when ScalarValue :: t().
-spec desc(argo_desc_value:t()) -> ScalarValue when ScalarValue :: t().
-spec fixed(binary()) -> ScalarValue when ScalarValue :: t().
-spec float64(float()) -> ScalarValue when ScalarValue :: t().
-spec is_boolean(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_bytes(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_desc(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_fixed(ScalarValue) -> boolean() when ScalarValue :: t().
Link to this function

is_fixed_length(ScalarValue, Length)

View Source
-spec is_fixed_length(ScalarValue, Length) -> boolean()
                   when ScalarValue :: t(), Length :: argo_types:length().
-spec is_float64(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_labeled(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_null(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_string(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_varint(ScalarValue) -> boolean() when ScalarValue :: t().
-spec string(binary()) -> ScalarValue when ScalarValue :: t().
Link to this function

supports_deduplication(ScalarValue)

View Source
-spec supports_deduplication(ScalarValue) -> boolean() when ScalarValue :: t().
Link to this function

to_scalar_wire_type(ScalarValue)

View Source
-spec to_scalar_wire_type(ScalarValue) -> ScalarWireType
                       when ScalarValue :: t(), ScalarWireType :: argo_scalar_wire_type:t().
-spec varint(argo_types:i64()) -> ScalarValue when ScalarValue :: t().