Class AlignedWritableMemChunkGroup

    • Constructor Summary

      Constructors 
      Constructor Description
      AlignedWritableMemChunkGroup​(java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String measurement)
      Check whether this MemChunkGroup contains a measurement.
      long count()  
      int delete​(org.apache.iotdb.commons.path.PartialPath originalPath, org.apache.iotdb.commons.path.PartialPath devicePath, long startTimestamp, long endTimestamp)  
      static AlignedWritableMemChunkGroup deserialize​(java.io.DataInputStream stream)  
      AlignedWritableMemChunk getAlignedMemChunk()  
      long getCurrentTVListSize​(java.lang.String measurement)  
      java.util.Map<java.lang.String,​IWritableMemChunk> getMemChunkMap()  
      void release()  
      int serializedSize()
      Calculate size after serialization.
      void serializeToWAL​(IWALByteBufferView buffer)
      Serialize using IWALByteBufferView, which encapsulates some actions to deal with BufferOverflowException occurs in ByteBuffer.
      void write​(long insertTime, java.lang.Object[] objectValue, java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList)  
      void writeValues​(long[] times, java.lang.Object[] columns, org.apache.iotdb.tsfile.utils.BitMap[] bitMaps, java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList, int start, int end)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlignedWritableMemChunkGroup

        public AlignedWritableMemChunkGroup​(java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList)
    • Method Detail

      • writeValues

        public void writeValues​(long[] times,
                                java.lang.Object[] columns,
                                org.apache.iotdb.tsfile.utils.BitMap[] bitMaps,
                                java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList,
                                int start,
                                int end)
        Specified by:
        writeValues in interface IWritableMemChunkGroup
      • contains

        public boolean contains​(java.lang.String measurement)
        Check whether this MemChunkGroup contains a measurement. If a VECTOR_PLACEHOLDER passed from outer, always return true because AlignedMemChunkGroup existing.
        Specified by:
        contains in interface IWritableMemChunkGroup
      • write

        public void write​(long insertTime,
                          java.lang.Object[] objectValue,
                          java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList)
        Specified by:
        write in interface IWritableMemChunkGroup
      • delete

        public int delete​(org.apache.iotdb.commons.path.PartialPath originalPath,
                          org.apache.iotdb.commons.path.PartialPath devicePath,
                          long startTimestamp,
                          long endTimestamp)
        Specified by:
        delete in interface IWritableMemChunkGroup
      • serializedSize

        public int serializedSize()
        Description copied from interface: SerializedSize
        Calculate size after serialization.
        Specified by:
        serializedSize in interface SerializedSize
        Returns:
        bytes number
      • deserialize

        public static AlignedWritableMemChunkGroup deserialize​(java.io.DataInputStream stream)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException