public abstract class TSEncodingBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TSEncodingBuilder.Dictionary |
static class |
TSEncodingBuilder.Freq
for INT32, INT64, FLOAT, DOUBLE.
|
static class |
TSEncodingBuilder.GorillaV1
for FLOAT, DOUBLE.
|
static class |
TSEncodingBuilder.GorillaV2
for FLOAT, DOUBLE, INT, LONG.
|
static class |
TSEncodingBuilder.Plain
for all TSDataType.
|
static class |
TSEncodingBuilder.Regular
for INT32, INT64
|
static class |
TSEncodingBuilder.Rle
for ENUMS, INT32, BOOLEAN, INT64, FLOAT, DOUBLE.
|
static class |
TSEncodingBuilder.Ts2Diff
for INT32, INT64, FLOAT, DOUBLE.
|
static class |
TSEncodingBuilder.Zigzag |
| Modifier and Type | Field and Description |
|---|---|
protected TSFileConfig |
conf |
| Constructor and Description |
|---|
TSEncodingBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract Encoder |
getEncoder(TSDataType type)
return a thread safe series's encoder with different types and parameters according to its
measurement id and data type.
|
static TSEncodingBuilder |
getEncodingBuilder(TSEncoding type)
return responding TSEncodingBuilder from a TSEncoding.
|
abstract void |
initFromProps(Map<String,String> props)
for TSEncoding, JSON is a kind of type for initialization.
|
String |
toString() |
protected final TSFileConfig conf
public static TSEncodingBuilder getEncodingBuilder(TSEncoding type)
type - - given encoding typepublic abstract Encoder getEncoder(TSDataType type)
type - - given data typepublic abstract void initFromProps(Map<String,String> props)
InitFromJsonObject gets
values from JSON object which will be used latter.props - - properties of encodingCopyright © 2022 The Apache Software Foundation. All rights reserved.