SSE Level 2 Vendor Interface Specification(FAST)-15章-FAST Decoder(FAST解析-第二部分)

15.4 Field Encoding

>>>字段编码
There are 3 types of field encoding operators used or will be used in FAST message. They are default
operator, copy operator and incremental operator.

>>>在FAST消息中,有三种类型的编码操作符,分别是:默认操作符default,拷贝操作符copy和增量操作符incremental.


15.4.1 Default operator

>>>默认操作符default
The default encoding operator specifies that the value of a field is either present in the stream or it will
be the default value.  If the field is optional and without default value, the presence map bit is off
meaning that the input value is absent.

>>>default 说明当前字段的值要么是数据流中自带的,要么是一个默认值.如果这个字段是可选的并且不带默认值,

>>>那么presence map位是off,意味着没有输入值,它是不存在的,缺席的.

 

15.4.2 Constant encoding operator

>>>常量编码操作符Constant
The constant encoding operator specifies that the value of a field is either absent or it is a constant
value.  If the field is mandatory, the input value must be the constant value.  For optional field, the
input value is the constant value if the presence map bit is on while the input value is absent if the
presence map bit is off.

>>>Constant  说明当前字段的值要么是不存在的,缺席的,要么是一个常量值.

>>>如果这个字段是强制的,那么输入值必须是常量值.对于可选字段,如果presence map位是on,则输入值是常量值.

>>>然而如果presence map位是off,则输入值是不存在的,缺席的.

 

15.4.3 Copy coding operator

>>>拷贝编码操作符copy
The copy encoding operator specifies that the value of a field is either copy from previous value or
present in the stream. Input value is present in the stream if the presence bit is on while the input value
is copied from previous value if the presence bit is off.
 

>>>copy 说明当前字段的值要么是先前值的拷贝,要么是数据流中自带的.

>>>如果presence map位是on,则输入值在流中自带,然而如果presence map位是off,则输入值是先前值的拷贝.

 

15.4.4 Increment coding

>>>增量编码操作符incremental
The increment encoding operator specifies that the value of a field is either present in the stream or it
will be the previous value plus increment value. The input value becomes previous value.

>>>incremental 说明当前字段的值要么是流中自带的,要么是先前值加上增量值.这个输入值成为先前值.

 

 

 

 

SSE Level 2 Vendor Interface Specification(FAST)-15章-FAST Decoder(FAST解析-第二部分) ---完

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值