注意:以下翻译的准确性尚未经过验证。这是使用 AIP ↗ 从原始英文文本进行的机器翻译。
支持:批处理,流处理
使用滑动窗口分割提取一系列文本段。
表达式类别: 字符串
输出类型: Array<字符串>
描述: 此测试展示了变换正确分割一小段文本的能力,其中结尾也将是一个独立的段。 参数值:
string
string | 输出 |
---|---|
hello world this is a test string | [ hello world this, this is a, a test string, string ] |
描述: 使用负溢出的测试。 参数值:
string
length
overflow
string | length | overflow | 输出 |
---|---|---|---|
She sells sea shells by | 2 | -1 | [ She sells, shells by ] |
描述: 一个带有溢出和结尾较小段的较大测试。 参数值:
string
length
overflow
string | length | overflow | 输出 |
---|---|---|---|
hello world this is a larger test with overlap, the nature of the human spirit is strange as such i ... | 10 | 3 | [ hello world this is a larger test with overlap, the, with overlap, the nature of the human spirit ... |
描述: 测试一个溢出设置为0的字符串,最后一个段小于完整长度。 参数值:
string
string | 输出 |
---|---|
hello world this is a test string | [ hello world this, is a test, string ] |
描述: 在没有溢出的情况下测试,段被完美地按长度划分。 参数值:
string
length
overflow
string | length | overflow | 输出 |
---|---|---|---|
hello world this is a test string without overlap | 3 | 0 | [ hello world this, is a test, string without overlap ] |
描述: 在没有溢出的情况下测试,段被完美地按长度划分。 参数值:
string
length
overflow
string | length | overflow | 输出 |
---|---|---|---|
null | null | null | null |
描述: 在没有溢出的情况下测试,段被完美地按长度划分。 参数值:
string
length
overflow
string | length | overflow | 输出 |
---|---|---|---|
null | 1 | null | null |
描述: 在没有溢出的情况下测试,段被完美地按长度划分。 参数值:
string
length
overflow
string | length | overflow | 输出 |
---|---|---|---|
Hello world | null | null | null |