Class FixLengthTimeValuePairSerializer
- java.lang.Object
-
- org.apache.iotdb.db.query.externalsort.serialize.impl.FixLengthTimeValuePairSerializer
-
- All Implemented Interfaces:
IExternalSortFileSerializer
public class FixLengthTimeValuePairSerializer extends java.lang.Object implements IExternalSortFileSerializer
IMPORTANT: One instance of this class should used with same type of TimeValuePair.FileFormat: [Header][Body]
[Header] = [DataTypeLength] + [DataTypeInStringBytes]
[DataTypeLength] = 4 bytes
-
-
Constructor Summary
Constructors Constructor Description FixLengthTimeValuePairSerializer(java.lang.String tmpFilePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair)
-
-
-
Method Detail
-
write
public void write(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair) throws java.io.IOException- Specified by:
writein interfaceIExternalSortFileSerializer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceIExternalSortFileSerializer- Throws:
java.io.IOException
-
-