public class TimeseriesSchema extends Object implements Comparable<TimeseriesSchema>, Serializable
| Constructor and Description |
|---|
TimeseriesSchema() |
TimeseriesSchema(String fullPath,
TSDataType tsDataType) |
TimeseriesSchema(String fullPath,
TSDataType type,
TSEncoding encoding)
set properties as an empty Map.
|
TimeseriesSchema(String fullPath,
TSDataType type,
TSEncoding encoding,
CompressionType compressionType) |
TimeseriesSchema(String fullPath,
TSDataType type,
TSEncoding encoding,
CompressionType compressionType,
Map<String,String> props)
Constructor of TimeseriesSchema.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TimeseriesSchema o)
compare by full path.
|
static TimeseriesSchema |
deserializeFrom(ByteBuffer buffer)
function for deserializing data from byte buffer.
|
boolean |
equals(Object o) |
CompressionType |
getCompressor() |
TSEncoding |
getEncodingType() |
String |
getFullPath() |
Map<String,String> |
getProps() |
Encoder |
getTimeEncoder()
function for getting time encoder.
|
TSDataType |
getType() |
Encoder |
getValueEncoder()
get Encoder of value from encodingConverter by measurementID and data type.
|
int |
hashCode() |
int |
serializeTo(ByteBuffer buffer)
function for serializing data to byte buffer.
|
int |
serializeTo(OutputStream outputStream)
function for serializing data to output stream.
|
void |
setFullPath(String fullPath) |
void |
setProps(Map<String,String> props) |
String |
toString() |
public TimeseriesSchema()
public TimeseriesSchema(String fullPath, TSDataType tsDataType)
public TimeseriesSchema(String fullPath, TSDataType type, TSEncoding encoding)
public TimeseriesSchema(String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType)
public TimeseriesSchema(String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType, Map<String,String> props)
props - information in encoding method. For RLE, Encoder.MAX_POINT_NUMBER For PLAIN, Encoder.maxStringLength
public static TimeseriesSchema deserializeFrom(ByteBuffer buffer)
public String getFullPath()
public void setFullPath(String fullPath)
public TSEncoding getEncodingType()
public TSDataType getType()
public Encoder getTimeEncoder()
public Encoder getValueEncoder()
public CompressionType getCompressor()
public int serializeTo(OutputStream outputStream) throws IOException
IOExceptionpublic int serializeTo(ByteBuffer buffer)
public int compareTo(TimeseriesSchema o)
compareTo in interface Comparable<TimeseriesSchema>Copyright © 2022 The Apache Software Foundation. All rights reserved.