factset.protobuf.stach.NullValues: factset.protobuf.stach.NullValues

Description Format Public fields Methods Examples

Description

Class defining the NullValues of various data types

Format

An R6Class generator object

Public fields

DOUBLE

Null value for DOUBLE data type

FLOAT

Null value for FLOAT data type

INT32

Null value for INT32 data type

INT64

Null value for INT64 data type

STRING

Null value for STRING data type

TIMESTAMP

Null value for TIMESTAMP data type

DURATION

Null value for DURATION data type

Methods

Public methods


Method new()

Usage
factset.protobuf.stach.NullValues$new()

Method clone()

The objects of this class are cloneable with this method.

Usage
factset.protobuf.stach.NullValues$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
nullValues <- factset.protobuf.stach.NullValues$new()

# Null value comparison for Protobuf's String data type.
a <- 'null'
if(nullValues$STRING == a) print("a is the null") else print("a is not a null")

# Null value comparison for Protobuf's Int32 data type.
b <- new(google.protobuf.Int32Value, value = 2147483647)
if(nullValues$INT32 == b$value) print("b is the null") else print("b is not a null")

# Null value comparison for Protobuf's Duration data type.
c <- new(google.protobuf.Duration, seconds = 315576000000, nanos = 999999900)
if(nullValues$DURATION == c) print("c is the null") else print("c is not a null")

factset.protobuf.stach documentation built on March 26, 2020, 7:44 p.m.