Documentation ¶
Index ¶
- Constants
- func WriteMapValue(out *io.DataOutputX, val *MapValue) *io.DataOutputX
- func WriteValue(out *io.DataOutputX, val Value) *io.DataOutputX
- type BlobValue
- type BoolValue
- type DecimalValue
- type DoubleSummary
- func (this *DoubleSummary) Add(other SummaryValue) SummaryValue
- func (this *DoubleSummary) AddCount()
- func (this *DoubleSummary) CompareTo(o Value) int
- func (this *DoubleSummary) DoubleAvg() float64
- func (this *DoubleSummary) DoubleMax() float64
- func (this *DoubleSummary) DoubleMin() float64
- func (this *DoubleSummary) DoubleSum() float64
- func (this *DoubleSummary) Equals(o Value) bool
- func (this *DoubleSummary) GetCount() int32
- func (this *DoubleSummary) GetValueType() byte
- func (this *DoubleSummary) LongAvg() int64
- func (this *DoubleSummary) LongMax() int64
- func (this *DoubleSummary) LongMin() int64
- func (this *DoubleSummary) LongSum() int64
- func (this *DoubleSummary) Read(in *io.DataInputX)
- func (this *DoubleSummary) ToString() string
- func (this *DoubleSummary) Write(out *io.DataOutputX)
- type DoubleValue
- type FloatArray
- type FloatValue
- type IP4Value
- type IntArray
- type IntMapValue
- func (this *IntMapValue) Clear()
- func (this *IntMapValue) CompareTo(o Value) int
- func (this *IntMapValue) Equals(o Value) bool
- func (this *IntMapValue) Get(key int32) Value
- func (this *IntMapValue) GetBool(key int32) bool
- func (this *IntMapValue) GetString(key int32) string
- func (this *IntMapValue) GetValueType() byte
- func (this *IntMapValue) Keys() hmap.IntEnumer
- func (this *IntMapValue) NewList(key int32) *ListValue
- func (this *IntMapValue) Put(key int32, value Value)
- func (this *IntMapValue) PutLong(key int32, value int64)
- func (this *IntMapValue) PutString(key int32, value string)
- func (this *IntMapValue) Read(din *io.DataInputX)
- func (this *IntMapValue) Size() int
- func (this *IntMapValue) Write(dout *io.DataOutputX)
- func (this *IntMapValue) WriteValue(out *io.DataOutputX) *io.DataOutputX
- type IntValue
- type ListValue
- func (this *ListValue) Add(value Value)
- func (this *ListValue) AddLong(value int64)
- func (this *ListValue) AddString(value string)
- func (this *ListValue) Clear()
- func (this *ListValue) CompareTo(o Value) int
- func (this *ListValue) Equals(o Value) bool
- func (this *ListValue) Get(i int) Value
- func (this *ListValue) GetBool(i int) bool
- func (this *ListValue) GetString(i int) string
- func (this *ListValue) GetValueType() byte
- func (this *ListValue) Read(din *io.DataInputX)
- func (this *ListValue) Set(idx int, value Value)
- func (this *ListValue) Size() int
- func (this *ListValue) Write(dout *io.DataOutputX)
- type LongArray
- type LongSummary
- func (this *LongSummary) Add(other SummaryValue) SummaryValue
- func (this *LongSummary) AddCount()
- func (this *LongSummary) CompareTo(o Value) int
- func (this *LongSummary) DoubleAvg() float64
- func (this *LongSummary) DoubleMax() float64
- func (this *LongSummary) DoubleMin() float64
- func (this *LongSummary) DoubleSum() float64
- func (this *LongSummary) Equals(o Value) bool
- func (this *LongSummary) GetCount() int32
- func (this *LongSummary) GetValueType() byte
- func (this *LongSummary) LongAvg() int64
- func (this *LongSummary) LongMax() int64
- func (this *LongSummary) LongMin() int64
- func (this *LongSummary) LongSum() int64
- func (this *LongSummary) Read(in *io.DataInputX)
- func (this *LongSummary) ToString() string
- func (this *LongSummary) Write(out *io.DataOutputX)
- type LongValue
- type MapValue
- func (this *MapValue) Clear()
- func (this *MapValue) CompareTo(o Value) int
- func (this *MapValue) ContainsKey(key string) bool
- func (this *MapValue) Equals(o Value) bool
- func (this *MapValue) Get(key string) Value
- func (this *MapValue) GetBool(key string) bool
- func (this *MapValue) GetFloat(key string) float32
- func (this *MapValue) GetLong(key string) int64
- func (this *MapValue) GetString(key string) string
- func (this *MapValue) GetValueType() byte
- func (this *MapValue) IsEmpty() bool
- func (this *MapValue) Keys() hmap.StringEnumer
- func (this *MapValue) NewList(name string) *ListValue
- func (this *MapValue) Put(key string, v Value)
- func (this *MapValue) PutAll(m *MapValue)
- func (this *MapValue) PutLong(key string, v int64)
- func (this *MapValue) PutString(key string, v string)
- func (this *MapValue) Read(din *io.DataInputX)
- func (this *MapValue) Size() int
- func (this *MapValue) String() string
- func (this *MapValue) ToString() string
- func (this *MapValue) Write(dout *io.DataOutputX)
- type NullValue
- type SummaryValue
- type TextArray
- type TextHashValue
- type TextValue
- type Value
Constants ¶
View Source
const ( VALUE_NULL = 0 VALUE_BOOLEAN = 10 VALUE_DECIMAL = 20 VALUE_DECIMAL_INT = 21 VALUE_DECIMAL_LONG = 22 VALUE_FLOAT = 30 VALUE_DOUBLE = 40 VALUE_DOUBLE_SUMMARY = 45 VALUE_LONG_SUMMARY = 46 FLOAT_SUMMARY = 47 VALUE_TEXT = 50 VALUE_TEXT_HASH = 51 VALUE_BLOB = 60 VALUE_IP4ADDR = 61 VALUE_LIST = 70 ARRAY_INT = 71 ARRAY_FLOAT = 72 ARRAY_TEXT = 73 ARRAY_LONG = 74 VALUE_MAP = 80 INT_VALUE_MAP = 81 )
View Source
const (
BYTE_LEN = 29
)
Variables ¶
This section is empty.
Functions ¶
func WriteMapValue ¶
func WriteMapValue(out *io.DataOutputX, val *MapValue) *io.DataOutputX
func WriteValue ¶
func WriteValue(out *io.DataOutputX, val Value) *io.DataOutputX
Types ¶
type BlobValue ¶
type BlobValue struct {
Val []byte
}
func NewBlobValue ¶
func (*BlobValue) GetValueType ¶
func (*BlobValue) Read ¶
func (this *BlobValue) Read(in *io.DataInputX)
func (*BlobValue) Write ¶
func (this *BlobValue) Write(out *io.DataOutputX)
type BoolValue ¶
type BoolValue struct {
Val bool
}
func NewBoolValue ¶
func (*BoolValue) GetValueType ¶
func (*BoolValue) Read ¶
func (this *BoolValue) Read(in *io.DataInputX)
func (*BoolValue) Write ¶
func (this *BoolValue) Write(out *io.DataOutputX)
type DecimalValue ¶
type DecimalValue struct {
Val int64
}
func NewDecimalValue ¶
func NewDecimalValue(v int64) *DecimalValue
func (*DecimalValue) CompareTo ¶
func (this *DecimalValue) CompareTo(o Value) int
func (*DecimalValue) Equals ¶
func (this *DecimalValue) Equals(o Value) bool
func (*DecimalValue) GetValueType ¶
func (this *DecimalValue) GetValueType() byte
func (*DecimalValue) Read ¶
func (this *DecimalValue) Read(in *io.DataInputX)
func (*DecimalValue) Write ¶
func (this *DecimalValue) Write(out *io.DataOutputX)
type DoubleSummary ¶
func NewDoubleSummary ¶
func NewDoubleSummary() *DoubleSummary
func (*DoubleSummary) Add ¶
func (this *DoubleSummary) Add(other SummaryValue) SummaryValue
func (*DoubleSummary) AddCount ¶
func (this *DoubleSummary) AddCount()
func (*DoubleSummary) CompareTo ¶
func (this *DoubleSummary) CompareTo(o Value) int
func (*DoubleSummary) DoubleAvg ¶
func (this *DoubleSummary) DoubleAvg() float64
func (*DoubleSummary) DoubleMax ¶
func (this *DoubleSummary) DoubleMax() float64
func (*DoubleSummary) DoubleMin ¶
func (this *DoubleSummary) DoubleMin() float64
func (*DoubleSummary) DoubleSum ¶
func (this *DoubleSummary) DoubleSum() float64
func (*DoubleSummary) Equals ¶
func (this *DoubleSummary) Equals(o Value) bool
func (*DoubleSummary) GetCount ¶
func (this *DoubleSummary) GetCount() int32
func (*DoubleSummary) GetValueType ¶
func (this *DoubleSummary) GetValueType() byte
func (*DoubleSummary) LongAvg ¶
func (this *DoubleSummary) LongAvg() int64
func (*DoubleSummary) LongMax ¶
func (this *DoubleSummary) LongMax() int64
func (*DoubleSummary) LongMin ¶
func (this *DoubleSummary) LongMin() int64
func (*DoubleSummary) LongSum ¶
func (this *DoubleSummary) LongSum() int64
func (*DoubleSummary) Read ¶
func (this *DoubleSummary) Read(in *io.DataInputX)
func (*DoubleSummary) ToString ¶
func (this *DoubleSummary) ToString() string
func (*DoubleSummary) Write ¶
func (this *DoubleSummary) Write(out *io.DataOutputX)
type DoubleValue ¶
type DoubleValue struct {
Val float64
}
func NewDoubleValue ¶
func NewDoubleValue(v float64) *DoubleValue
func (*DoubleValue) CompareTo ¶
func (this *DoubleValue) CompareTo(o Value) int
func (*DoubleValue) Equals ¶
func (this *DoubleValue) Equals(o Value) bool
func (*DoubleValue) GetValueType ¶
func (this *DoubleValue) GetValueType() byte
func (*DoubleValue) Read ¶
func (this *DoubleValue) Read(in *io.DataInputX)
func (*DoubleValue) Write ¶
func (this *DoubleValue) Write(out *io.DataOutputX)
type FloatArray ¶
type FloatArray struct {
Val []float32
}
func NewFloatArray ¶
func NewFloatArray(v []float32) *FloatArray
func (*FloatArray) CompareTo ¶
func (this *FloatArray) CompareTo(o Value) int
func (*FloatArray) Equals ¶
func (this *FloatArray) Equals(o Value) bool
func (*FloatArray) GetValueType ¶
func (this *FloatArray) GetValueType() byte
func (*FloatArray) Read ¶
func (this *FloatArray) Read(in *io.DataInputX)
func (*FloatArray) Write ¶
func (this *FloatArray) Write(out *io.DataOutputX)
type FloatValue ¶
type FloatValue struct {
Val float32
}
func NewFloatValue ¶
func NewFloatValue(v float32) *FloatValue
func (*FloatValue) CompareTo ¶
func (this *FloatValue) CompareTo(o Value) int
func (*FloatValue) Equals ¶
func (this *FloatValue) Equals(o Value) bool
func (*FloatValue) GetValueType ¶
func (this *FloatValue) GetValueType() byte
func (*FloatValue) Read ¶
func (this *FloatValue) Read(in *io.DataInputX)
func (*FloatValue) Write ¶
func (this *FloatValue) Write(out *io.DataOutputX)
type IP4Value ¶
type IP4Value struct {
Val []byte
}
func NewIP4Value ¶
func NewIP4ValueString ¶
func (*IP4Value) GetValueType ¶
func (*IP4Value) Read ¶
func (this *IP4Value) Read(in *io.DataInputX)
func (*IP4Value) Write ¶
func (this *IP4Value) Write(out *io.DataOutputX)
type IntArray ¶
type IntArray struct {
Val []int32
}
func NewIntArray ¶
func (*IntArray) GetValueType ¶
func (*IntArray) Read ¶
func (this *IntArray) Read(in *io.DataInputX)
func (*IntArray) Write ¶
func (this *IntArray) Write(out *io.DataOutputX)
type IntMapValue ¶
type IntMapValue struct {
// contains filtered or unexported fields
}
func NewIntMapValue ¶
func NewIntMapValue() *IntMapValue
func (*IntMapValue) Clear ¶
func (this *IntMapValue) Clear()
func (*IntMapValue) CompareTo ¶
func (this *IntMapValue) CompareTo(o Value) int
func (*IntMapValue) Equals ¶
func (this *IntMapValue) Equals(o Value) bool
func (*IntMapValue) Get ¶
func (this *IntMapValue) Get(key int32) Value
func (*IntMapValue) GetBool ¶
func (this *IntMapValue) GetBool(key int32) bool
func (*IntMapValue) GetString ¶
func (this *IntMapValue) GetString(key int32) string
func (*IntMapValue) GetValueType ¶
func (this *IntMapValue) GetValueType() byte
func (*IntMapValue) Keys ¶
func (this *IntMapValue) Keys() hmap.IntEnumer
func (*IntMapValue) NewList ¶
func (this *IntMapValue) NewList(key int32) *ListValue
func (*IntMapValue) Put ¶
func (this *IntMapValue) Put(key int32, value Value)
func (*IntMapValue) PutLong ¶
func (this *IntMapValue) PutLong(key int32, value int64)
func (*IntMapValue) PutString ¶
func (this *IntMapValue) PutString(key int32, value string)
func (*IntMapValue) Read ¶
func (this *IntMapValue) Read(din *io.DataInputX)
func (*IntMapValue) Size ¶
func (this *IntMapValue) Size() int
func (*IntMapValue) Write ¶
func (this *IntMapValue) Write(dout *io.DataOutputX)
func (*IntMapValue) WriteValue ¶
func (this *IntMapValue) WriteValue(out *io.DataOutputX) *io.DataOutputX
type IntValue ¶
type IntValue struct {
Val int32
}
func NewIntValue ¶
func (*IntValue) GetValueType ¶
func (*IntValue) Read ¶
func (this *IntValue) Read(in *io.DataInputX)
func (*IntValue) Write ¶
func (this *IntValue) Write(out *io.DataOutputX)
type ListValue ¶
type ListValue struct {
// contains filtered or unexported fields
}
func NewListValue ¶
func NewListValue(value []interface{}) *ListValue
func (*ListValue) GetValueType ¶
func (*ListValue) Read ¶
func (this *ListValue) Read(din *io.DataInputX)
func (*ListValue) Write ¶
func (this *ListValue) Write(dout *io.DataOutputX)
type LongArray ¶
type LongArray struct {
Val []int64
}
func NewLongArray ¶
func (*LongArray) GetValueType ¶
func (*LongArray) Read ¶
func (this *LongArray) Read(in *io.DataInputX)
func (*LongArray) Write ¶
func (this *LongArray) Write(out *io.DataOutputX)
type LongSummary ¶
func NewLongSummary ¶
func NewLongSummary() *LongSummary
func (*LongSummary) Add ¶
func (this *LongSummary) Add(other SummaryValue) SummaryValue
func (*LongSummary) AddCount ¶
func (this *LongSummary) AddCount()
func (*LongSummary) CompareTo ¶
func (this *LongSummary) CompareTo(o Value) int
func (*LongSummary) DoubleAvg ¶
func (this *LongSummary) DoubleAvg() float64
func (*LongSummary) DoubleMax ¶
func (this *LongSummary) DoubleMax() float64
func (*LongSummary) DoubleMin ¶
func (this *LongSummary) DoubleMin() float64
func (*LongSummary) DoubleSum ¶
func (this *LongSummary) DoubleSum() float64
func (*LongSummary) Equals ¶
func (this *LongSummary) Equals(o Value) bool
func (*LongSummary) GetCount ¶
func (this *LongSummary) GetCount() int32
func (*LongSummary) GetValueType ¶
func (this *LongSummary) GetValueType() byte
func (*LongSummary) LongAvg ¶
func (this *LongSummary) LongAvg() int64
func (*LongSummary) LongMax ¶
func (this *LongSummary) LongMax() int64
func (*LongSummary) LongMin ¶
func (this *LongSummary) LongMin() int64
func (*LongSummary) LongSum ¶
func (this *LongSummary) LongSum() int64
func (*LongSummary) Read ¶
func (this *LongSummary) Read(in *io.DataInputX)
func (*LongSummary) ToString ¶
func (this *LongSummary) ToString() string
func (*LongSummary) Write ¶
func (this *LongSummary) Write(out *io.DataOutputX)
type LongValue ¶
type LongValue struct {
Val int64
}
func NewLongValue ¶
func (*LongValue) GetValueType ¶
func (*LongValue) Read ¶
func (this *LongValue) Read(in *io.DataInputX)
func (*LongValue) Write ¶
func (this *LongValue) Write(out *io.DataOutputX)
type MapValue ¶
type MapValue struct {
// contains filtered or unexported fields
}
func NewMapValue ¶
func NewMapValue() *MapValue
func ReadMapValue ¶
func ReadMapValue(in *io.DataInputX) (ret *MapValue)
func (*MapValue) ContainsKey ¶
func (*MapValue) GetValueType ¶
func (*MapValue) Keys ¶
func (this *MapValue) Keys() hmap.StringEnumer
func (*MapValue) Read ¶
func (this *MapValue) Read(din *io.DataInputX)
func (*MapValue) Write ¶
func (this *MapValue) Write(dout *io.DataOutputX)
type NullValue ¶
type NullValue struct { }
func NewNullValue ¶
func NewNullValue() *NullValue
func (*NullValue) GetValueType ¶
func (*NullValue) Read ¶
func (this *NullValue) Read(in *io.DataInputX)
func (*NullValue) Write ¶
func (this *NullValue) Write(out *io.DataOutputX)
type SummaryValue ¶
type TextArray ¶
type TextArray struct {
Val []string
}
func NewTextArray ¶
func (*TextArray) GetValueType ¶
func (*TextArray) Read ¶
func (this *TextArray) Read(in *io.DataInputX)
func (*TextArray) Write ¶
func (this *TextArray) Write(out *io.DataOutputX)
type TextHashValue ¶
type TextHashValue struct {
Val int32
}
func NewTextHashValue ¶
func NewTextHashValue(v int32) *TextHashValue
func (*TextHashValue) CompareTo ¶
func (this *TextHashValue) CompareTo(o Value) int
func (*TextHashValue) Equals ¶
func (this *TextHashValue) Equals(o Value) bool
func (*TextHashValue) GetValueType ¶
func (this *TextHashValue) GetValueType() byte
func (*TextHashValue) Read ¶
func (this *TextHashValue) Read(in *io.DataInputX)
func (*TextHashValue) Write ¶
func (this *TextHashValue) Write(out *io.DataOutputX)
type TextValue ¶
type TextValue struct {
Val string
}
func NewTextValue ¶
func (*TextValue) GetValueType ¶
func (*TextValue) Read ¶
func (this *TextValue) Read(in *io.DataInputX)
func (*TextValue) Write ¶
func (this *TextValue) Write(out *io.DataOutputX)
type Value ¶
type Value interface { GetValueType() byte Equals(o Value) bool CompareTo(o Value) int Write(out *io.DataOutputX) Read(in *io.DataInputX) }
func CreateValue ¶
func ReadValue ¶
func ReadValue(in *io.DataInputX) Value
Source Files ¶
Click to show internal directories.
Click to hide internal directories.