public class MeasurementSchema extends Object implements IMeasurementSchema, Comparable<MeasurementSchema>, Serializable
| Constructor and Description |
|---|
MeasurementSchema() |
MeasurementSchema(String measurementId,
byte type,
byte encoding,
byte compressionType,
Map<String,String> props) |
MeasurementSchema(String measurementId,
TSDataType tsDataType) |
MeasurementSchema(String measurementId,
TSDataType type,
TSEncoding encoding)
set properties as an empty Map.
|
MeasurementSchema(String measurementId,
TSDataType type,
TSEncoding encoding,
CompressionType compressionType) |
MeasurementSchema(String measurementId,
TSDataType type,
TSEncoding encoding,
CompressionType compressionType,
Map<String,String> props)
Constructor of MeasurementSchema.
|
public MeasurementSchema()
public MeasurementSchema(String measurementId, TSDataType tsDataType)
public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding)
public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding, CompressionType compressionType)
public MeasurementSchema(String measurementId, 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 MeasurementSchema deserializeFrom(InputStream inputStream) throws IOException
IOExceptionpublic static MeasurementSchema deserializeFrom(ByteBuffer buffer)
public static MeasurementSchema partialDeserializeFrom(ByteBuffer buffer)
public String getMeasurementId()
getMeasurementId in interface IMeasurementSchemapublic void setMeasurementId(String measurementId)
public Map<String,String> getProps()
getProps in interface IMeasurementSchemapublic TSEncoding getEncodingType()
getEncodingType in interface IMeasurementSchemapublic TSDataType getType()
getType in interface IMeasurementSchemapublic byte getTypeInByte()
getTypeInByte in interface IMeasurementSchemapublic TSEncoding getTimeTSEncoding()
getTimeTSEncoding in interface IMeasurementSchemapublic Encoder getTimeEncoder()
getTimeEncoder in interface IMeasurementSchemapublic List<String> getSubMeasurementsList()
getSubMeasurementsList in interface IMeasurementSchemapublic List<TSDataType> getSubMeasurementsTSDataTypeList()
getSubMeasurementsTSDataTypeList in interface IMeasurementSchemapublic List<TSEncoding> getSubMeasurementsTSEncodingList()
getSubMeasurementsTSEncodingList in interface IMeasurementSchemapublic List<Encoder> getSubMeasurementsEncoderList()
getSubMeasurementsEncoderList in interface IMeasurementSchemapublic Encoder getValueEncoder()
getValueEncoder in interface IMeasurementSchemapublic CompressionType getCompressor()
getCompressor in interface IMeasurementSchemapublic int serializeTo(OutputStream outputStream) throws IOException
serializeTo in interface IMeasurementSchemaIOExceptionpublic int serializedSize()
serializedSize in interface IMeasurementSchemapublic int serializeTo(ByteBuffer buffer)
serializeTo in interface IMeasurementSchemapublic int partialSerializeTo(OutputStream outputStream) throws IOException
partialSerializeTo in interface IMeasurementSchemaIOExceptionpublic int partialSerializeTo(ByteBuffer buffer)
partialSerializeTo in interface IMeasurementSchemapublic int compareTo(MeasurementSchema o)
compareTo in interface Comparable<MeasurementSchema>public void setType(TSDataType type)
setType in interface IMeasurementSchemapublic int getSubMeasurementIndex(String measurementId)
getSubMeasurementIndex in interface IMeasurementSchemapublic int getSubMeasurementsCount()
getSubMeasurementsCount in interface IMeasurementSchemapublic boolean containsSubMeasurement(String measurementId)
containsSubMeasurement in interface IMeasurementSchemaCopyright © 2022 The Apache Software Foundation. All rights reserved.