public class DictionaryEncoder extends Object
ValueVector
. Dictionary encoding produces an
integer ValueVector
. Each entry in the Vector is index into the dictionary which can hold
values of any type.コンストラクタと説明 |
---|
DictionaryEncoder() |
修飾子とタイプ | メソッドと説明 |
---|---|
static ValueVector |
decode(ValueVector indices,
Dictionary dictionary)
Decodes a dictionary encoded array using the provided dictionary.
|
static ValueVector |
encode(ValueVector vector,
Dictionary dictionary)
Dictionary encodes a vector with a provided dictionary.
|
public static ValueVector encode(ValueVector vector, Dictionary dictionary)
vector
- vector to encodedictionary
- dictionary used for encodingpublic static ValueVector decode(ValueVector indices, Dictionary dictionary)
indices
- dictionary encoded values, must be int typedictionary
- dictionary used to decode the valuesCopyright © 2019 The Apache Software Foundation. All rights reserved.