Spotfire® Data Streams 连接器 - 功能和设置
可以使用 Spotfire® Data Streams 连接器连接和访问流数据。在此页面上,可以了解相关功能、可用设置以及处理与 Spotfire Data Streams 的数据连接时的注意事项。
页面内容
连接器功能
使用 Spotfire Data Streams 连接器访问数据时,可以使用以下功能。
功能 | 支持? |
---|---|
加载方法 |
|
自定义查询 | 否 |
预存程序 | 否 |
自定义连接属性 | 否 |
使用身份提供程序进行单点登录 | 否 |
在 Web 客户端中编写 | 否 |
包含在 Linux 上的 Spotfire 发行版中 | 是 |
数据源属性
以下是在使用 Spotfire Data Streams 连接器创建数据连接时可以配置的受支持的数据源属性。
选项 | 说明 |
---|---|
服务器或流 URL | 要连接到的 Spotfire Data Streams 服务器或特定数据流。可以是服务器、服务器地址或 TIBCO Cloud 上数据流的 URL。 当您输入服务器 URL 时,可以指定端口号。直接在服务器名称后面添加冒号和端口号即可。例如:
如果不指定端口号,将使用默认端口号 10080。当您输入数据流的 URL 时,必须提供 TIBCO Cloud 上特定数据流的 URL。例如:
|
身份验证模式 | 登录到 Spotfire Data Streams 服务器或 TIBCO Cloud Data Streams 时要使用的身份验证方法。
|
使用 TLS/SSL | 选中此复选框可在连接到 Spotfire Data Streams 服务器时使用 TLS/SSL 加密。 |
使用压缩 | 选中此复选框可在连接中使用数据压缩。 您所选择的“使用压缩”选项可能会影响连接性能。这可能取决于,例如,Spotfire Data Streams 服务器是位于您的本地网络还是位于很远的地方。 注: 默认情况下,“使用压缩”复选框为已选中状态。
|
受支持的数据类型
设置到外部数据源的连接时,Spotfire 需要将数据源中的数据类型映射到 Spotfire 中的数据类型。以下是 Spotfire Data Streams 连接器支持的数据类型。
数据库数据类型 | Spotfire 数据类型 |
---|---|
blob | Binary |
bool | Boolean |
timestamp | DateTime 或 TimeSpan Spotfire Data Streams 中的 timestamp 数据类型既可以表示绝对时间戳,也可以表示时间间隔。包含 timestamp 数据的列应相应地映射到 Spotfire 数据类型 DateTime 或 TimeSpan。 绝对时间戳数据 = DateTime 时间间隔数据 = TimeSpan 默认情况下,timestamp 列映射到 Spotfire 中的 DateTime 数据类型。创建连接时,必须手动将包含时间间隔类型数据的 timestamp 列的类型映射更改为 TimeSpan。如果此类列映射到 DateTime,则列中的数据无法正确加载。
注: 无法加载同时包含绝对时间戳数据和时间间隔数据的 timestamp 列。
|
int | Integer |
long | LongInteger |
double | Real |
string | String |
支持的函数
支持的函数是指您在处理数据库中的数据表时可以使用的函数,例如在计算的列和自定义表达式中使用。
注: 您的数据库可能无法使用某些受支持的函数。这取决于数据库中可用的函数,不同数据库版本和类型之间通常会有差异。
以下是 Spotfire Data Streams 连接器支持的函数。
函数类型 | 支持的函数 |
---|---|
日期和时间 | DayOfMonth 、DayOfWeek 、Hour 、Minute 、Month 、Second 、Year 、date 、days 、epoch 、format_time 、from_gmtime 、from_localtime 、from_unixtime 、get_day_of_month 、get_day_of_week 、get_day_of_year 、get_hour 、get_millisecond 、get_minute 、get_month 、get_second 、get_year 、hours 、milliseconds 、minutes 、now 、parse_time 、seconds 、set_day_of_month 、set_day_of_week 、set_hour 、set_minute 、set_month 、set_second 、set_year 、strftime 、strpinterval 、strptime 、time 、this_month 、timezoneoffset 、to_milliseconds 、to_seconds 、today 、today_utc 、weeks 、 yesterday |
转换 | Boolean 、DateTime 、Integer 、LongInteger 、Real 、String 、 TimeSpan |
数学 | abs 、acos 、asin 、atan 、atan2、bitand 、bitnot 、bitor 、bitxor 、black_scholes 、cbrt 、ceil 、choose 、compound_interest 、cos 、cosh 、exp 、expm1、factorial 、floor 、gaussianrandom 、isnan 、ln 、log10、log1p、lshift 、notnan 、permute 、pow 、random 、round 、rshift 、sign 、sin 、sinh 、sqrt 、tan 、tanh 、to_degrees 、to_radius 、 unsignedshift |
运算符 | +、-、*、/、% |
统计 | avg 、avgif 、correlation_coefficient 、correlation_coefficientp 、count 、count_distinct 、countif 、countlong 、covariance 、covariancep 、firstnonnullval 、firstval 、intercept 、lastnonnullval 、lastval 、max 、min 、percentile 、product 、slope 、stdev 、stdevp 、sum 、sumif 、variance 、variancep 、vwap 、withmax 、 withmin |
文本 | contains 、endswith 、indexof 、isempty 、lastindexof 、lower 、ltrim 、randomstring 、regexmatch 、regexmatch_ignorecase 、regexplace 、replace 、rtrim 、startswith 、strlen 、strresizetrunc 、substr 、 upper |
效用 | coalesce 、great_circle_distance 、hash 、isnull 、jsonpath 、length 、md5、notnull 、 uuid |