Class TimeseriesSchema
- java.lang.Object
-
- org.apache.iotdb.tsfile.write.schema.TimeseriesSchema
-
- All Implemented Interfaces:
Serializable,Comparable<TimeseriesSchema>
public class TimeseriesSchema extends Object implements Comparable<TimeseriesSchema>, Serializable
TimeseriesSchema is like MeasurementSchema, but instead of measurementId, it stores the full path.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TimeseriesSchema o)compare by full path.static TimeseriesSchemadeserializeFrom(ByteBuffer buffer)function for deserializing data from byte buffer.booleanequals(Object o)CompressionTypegetCompressor()TSEncodinggetEncodingType()StringgetFullPath()Map<String,String>getProps()EncodergetTimeEncoder()function for getting time encoder.TSDataTypegetType()EncodergetValueEncoder()get Encoder of value from encodingConverter by measurementID and data type.inthashCode()intserializeTo(OutputStream outputStream)function for serializing data to output stream.intserializeTo(ByteBuffer buffer)function for serializing data to byte buffer.voidsetFullPath(String fullPath)voidsetProps(Map<String,String> props)StringtoString()
-
-
-
Constructor Detail
-
TimeseriesSchema
public TimeseriesSchema()
-
TimeseriesSchema
public TimeseriesSchema(String fullPath, TSDataType tsDataType)
-
TimeseriesSchema
public TimeseriesSchema(String fullPath, TSDataType type, TSEncoding encoding)
set properties as an empty Map.
-
TimeseriesSchema
public TimeseriesSchema(String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType)
-
TimeseriesSchema
public TimeseriesSchema(String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType, Map<String,String> props)
Constructor of TimeseriesSchema.props - information in encoding method. For RLE, Encoder.MAX_POINT_NUMBER For PLAIN, Encoder.maxStringLength
-
-
Method Detail
-
deserializeFrom
public static TimeseriesSchema deserializeFrom(ByteBuffer buffer)
function for deserializing data from byte buffer.
-
getFullPath
public String getFullPath()
-
setFullPath
public void setFullPath(String fullPath)
-
getEncodingType
public TSEncoding getEncodingType()
-
getType
public TSDataType getType()
-
getTimeEncoder
public Encoder getTimeEncoder()
function for getting time encoder.
-
getValueEncoder
public Encoder getValueEncoder()
get Encoder of value from encodingConverter by measurementID and data type.- Returns:
- Encoder for value
-
getCompressor
public CompressionType getCompressor()
-
serializeTo
public int serializeTo(OutputStream outputStream) throws IOException
function for serializing data to output stream.- Throws:
IOException
-
serializeTo
public int serializeTo(ByteBuffer buffer)
function for serializing data to byte buffer.
-
compareTo
public int compareTo(TimeseriesSchema o)
compare by full path.- Specified by:
compareToin interfaceComparable<TimeseriesSchema>
-
-