Class TimeseriesSchema
- java.lang.Object
-
- org.apache.iotdb.tsfile.write.schema.TimeseriesSchema
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TimeseriesSchema>
public class TimeseriesSchema extends java.lang.Object implements java.lang.Comparable<TimeseriesSchema>, java.io.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(java.lang.String fullPath, TSDataType tsDataType)TimeseriesSchema(java.lang.String fullPath, TSDataType type, TSEncoding encoding)set properties as an empty Map.TimeseriesSchema(java.lang.String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType)TimeseriesSchema(java.lang.String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType, java.util.Map<java.lang.String,java.lang.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(java.nio.ByteBuffer buffer)function for deserializing data from byte buffer.booleanequals(java.lang.Object o)CompressionTypegetCompressor()TSEncodinggetEncodingType()java.lang.StringgetFullPath()java.util.Map<java.lang.String,java.lang.String>getProps()EncodergetTimeEncoder()function for getting time encoder.TSDataTypegetType()EncodergetValueEncoder()get Encoder of value from encodingConverter by measurementID and data type.inthashCode()intserializeTo(java.io.OutputStream outputStream)function for serializing data to output stream.intserializeTo(java.nio.ByteBuffer buffer)function for serializing data to byte buffer.voidsetFullPath(java.lang.String fullPath)voidsetProps(java.util.Map<java.lang.String,java.lang.String> props)java.lang.StringtoString()
-
-
-
Constructor Detail
-
TimeseriesSchema
public TimeseriesSchema()
-
TimeseriesSchema
public TimeseriesSchema(java.lang.String fullPath, TSDataType tsDataType)
-
TimeseriesSchema
public TimeseriesSchema(java.lang.String fullPath, TSDataType type, TSEncoding encoding)set properties as an empty Map.
-
TimeseriesSchema
public TimeseriesSchema(java.lang.String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType)
-
TimeseriesSchema
public TimeseriesSchema(java.lang.String fullPath, TSDataType type, TSEncoding encoding, CompressionType compressionType, java.util.Map<java.lang.String,java.lang.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(java.nio.ByteBuffer buffer)
function for deserializing data from byte buffer.
-
getFullPath
public java.lang.String getFullPath()
-
setFullPath
public void setFullPath(java.lang.String fullPath)
-
getProps
public java.util.Map<java.lang.String,java.lang.String> getProps()
-
getEncodingType
public TSEncoding getEncodingType()
-
getType
public TSDataType getType()
-
setProps
public void setProps(java.util.Map<java.lang.String,java.lang.String> props)
-
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(java.io.OutputStream outputStream) throws java.io.IOExceptionfunction for serializing data to output stream.- Throws:
java.io.IOException
-
serializeTo
public int serializeTo(java.nio.ByteBuffer buffer)
function for serializing data to byte buffer.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(TimeseriesSchema o)
compare by full path.- Specified by:
compareToin interfacejava.lang.Comparable<TimeseriesSchema>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-