Class SerializableList.SerializationRecorder
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.datastructure.SerializableList.SerializationRecorder
-
- Enclosing interface:
- SerializableList
public static class SerializableList.SerializationRecorder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.RandomAccessFilefileprotected java.nio.channels.FileChannelfileChannelprotected java.lang.StringfileNameprotected booleanisSerializedprotected static intNOT_SERIALIZEDprotected longqueryIdprotected intserializedByteLengthprotected intserializedElementSize
-
Constructor Summary
Constructors Constructor Description SerializationRecorder(long queryId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseFile()voidcloseFileChannel()java.io.RandomAccessFilegetFile()java.nio.channels.FileChannelgetFileChannel()longgetQueryId()intgetSerializedByteLength()intgetSerializedElementSize()booleanisSerialized()voidmarkAsNotSerialized()voidmarkAsSerialized()voidsetSerializedByteLength(int serializedByteLength)voidsetSerializedElementSize(int serializedElementSize)
-
-
-
Field Detail
-
NOT_SERIALIZED
protected static final int NOT_SERIALIZED
- See Also:
- Constant Field Values
-
queryId
protected final long queryId
-
isSerialized
protected boolean isSerialized
-
serializedByteLength
protected int serializedByteLength
-
serializedElementSize
protected int serializedElementSize
-
fileName
protected java.lang.String fileName
-
file
protected java.io.RandomAccessFile file
-
fileChannel
protected java.nio.channels.FileChannel fileChannel
-
-
Method Detail
-
markAsSerialized
public void markAsSerialized()
-
markAsNotSerialized
public void markAsNotSerialized()
-
isSerialized
public boolean isSerialized()
-
setSerializedByteLength
public void setSerializedByteLength(int serializedByteLength)
-
getSerializedByteLength
public int getSerializedByteLength()
-
setSerializedElementSize
public void setSerializedElementSize(int serializedElementSize)
-
getSerializedElementSize
public int getSerializedElementSize()
-
getFile
public java.io.RandomAccessFile getFile() throws java.io.IOException- Throws:
java.io.IOException
-
closeFile
public void closeFile() throws java.io.IOException- Throws:
java.io.IOException
-
getFileChannel
public java.nio.channels.FileChannel getFileChannel() throws java.io.IOException- Throws:
java.io.IOException
-
closeFileChannel
public void closeFileChannel() throws java.io.IOException- Throws:
java.io.IOException
-
getQueryId
public long getQueryId()
-
-