Class SchemaEntry

  • All Implemented Interfaces:
    ILastCacheContainer

    public class SchemaEntry
    extends java.lang.Object
    implements ILastCacheContainer
    Schema entry of id table
    Notice that this class is also a last cache container for last cache
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaEntry​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType)  
      SchemaEntry​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding, org.apache.iotdb.tsfile.file.metadata.enums.CompressionType compressionType, long diskPos)  
      SchemaEntry​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding, org.apache.iotdb.tsfile.file.metadata.enums.CompressionType compressionType, IDeviceID deviceID, org.apache.iotdb.commons.path.PartialPath fullPath, boolean isAligned, IDiskSchemaManager IDiskSchemaManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      org.apache.iotdb.tsfile.read.TimeValuePair getCachedLast()  
      org.apache.iotdb.tsfile.file.metadata.enums.CompressionType getCompressionType()
      get compression type from long value of schema
      long getDiskPointer()
      get disk pointer of ts from long value of schema
      long getLastTime()  
      java.lang.Object getLastValue()  
      org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getTSDataType()
      get ts data type from long value of schema
      org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding getTSEncoding()
      get ts encoding from long value of schema
      int hashCode()  
      boolean isEmpty()  
      boolean isUsingTrigger()  
      void resetLastCache()  
      void setUnUsingTrigger()  
      void setUsingTrigger()  
      void updateCachedLast​(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)
      update last point cache
      • Methods inherited from class java.lang.Object

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

      • SchemaEntry

        public SchemaEntry​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType)
      • SchemaEntry

        public SchemaEntry​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                           org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding,
                           org.apache.iotdb.tsfile.file.metadata.enums.CompressionType compressionType,
                           long diskPos)
      • SchemaEntry

        public SchemaEntry​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                           org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding,
                           org.apache.iotdb.tsfile.file.metadata.enums.CompressionType compressionType,
                           IDeviceID deviceID,
                           org.apache.iotdb.commons.path.PartialPath fullPath,
                           boolean isAligned,
                           IDiskSchemaManager IDiskSchemaManager)
    • Method Detail

      • getDiskPointer

        public long getDiskPointer()
        get disk pointer of ts from long value of schema
        Returns:
        disk pointer
      • getTSDataType

        public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getTSDataType()
        get ts data type from long value of schema
        Returns:
        ts data type
      • getTSEncoding

        public org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding getTSEncoding()
        get ts encoding from long value of schema
        Returns:
        ts encoding
      • getCompressionType

        public org.apache.iotdb.tsfile.file.metadata.enums.CompressionType getCompressionType()
        get compression type from long value of schema
        Returns:
        compression type
      • isUsingTrigger

        public boolean isUsingTrigger()
      • setUsingTrigger

        public void setUsingTrigger()
      • setUnUsingTrigger

        public void setUnUsingTrigger()
      • getLastTime

        public long getLastTime()
      • getLastValue

        public java.lang.Object getLastValue()
      • updateCachedLast

        public void updateCachedLast​(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair,
                                     boolean highPriorityUpdate,
                                     java.lang.Long latestFlushedTime)
        Description copied from interface: ILastCacheContainer
        update last point cache
        Specified by:
        updateCachedLast in interface ILastCacheContainer
        Parameters:
        timeValuePair - last point
        highPriorityUpdate - whether it's a high priority update
        latestFlushedTime - latest flushed time
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object