Class ElasticSerializableTVList

  • All Implemented Interfaces:
    org.apache.iotdb.udf.api.collector.PointCollector
    Direct Known Subclasses:
    ElasticSerializableBinaryTVList

    public class ElasticSerializableTVList
    extends java.lang.Object
    implements org.apache.iotdb.udf.api.collector.PointCollector
    • Field Detail

      • dataType

        protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType
      • queryId

        protected long queryId
      • memoryLimitInMB

        protected float memoryLimitInMB
      • internalTVListCapacity

        protected int internalTVListCapacity
      • cacheSize

        protected int cacheSize
      • cache

        protected org.apache.iotdb.db.mpp.transformation.datastructure.tv.ElasticSerializableTVList.LRUCache cache
      • bitMaps

        protected java.util.List<org.apache.iotdb.tsfile.utils.BitMap> bitMaps
        the bitmap used to indicate whether one value is null in the tvLists. The size of bitMap is the same as tvLists and the length of whole bits is the same as tvLists' length.
      • size

        protected int size
      • evictionUpperBound

        protected int evictionUpperBound
    • Constructor Detail

      • ElasticSerializableTVList

        protected ElasticSerializableTVList​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                            long queryId,
                                            float memoryLimitInMB,
                                            int cacheSize)
      • ElasticSerializableTVList

        protected ElasticSerializableTVList​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                            long queryId,
                                            float memoryLimitInMB,
                                            int internalTVListCapacity,
                                            int cacheSize)
    • Method Detail

      • newElasticSerializableTVList

        public static ElasticSerializableTVList newElasticSerializableTVList​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                                                             long queryId,
                                                                             float memoryLimitInMB,
                                                                             int cacheSize)
      • getDataType

        public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getDataType()
      • size

        public int size()
      • isNull

        public boolean isNull​(int index)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getTime

        public long getTime​(int index)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getInt

        public int getInt​(int index)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getLong

        public long getLong​(int index)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getFloat

        public float getFloat​(int index)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getDouble

        public double getDouble​(int index)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getBoolean

        public boolean getBoolean​(int index)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getBinary

        public org.apache.iotdb.tsfile.utils.Binary getBinary​(int index)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getString

        public java.lang.String getString​(int index)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • putInt

        public void putInt​(long timestamp,
                           int value)
                    throws java.io.IOException
        Specified by:
        putInt in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putLong

        public void putLong​(long timestamp,
                            long value)
                     throws java.io.IOException
        Specified by:
        putLong in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putFloat

        public void putFloat​(long timestamp,
                             float value)
                      throws java.io.IOException
        Specified by:
        putFloat in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putDouble

        public void putDouble​(long timestamp,
                              double value)
                       throws java.io.IOException
        Specified by:
        putDouble in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putBoolean

        public void putBoolean​(long timestamp,
                               boolean value)
                        throws java.io.IOException
        Specified by:
        putBoolean in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putBinary

        public void putBinary​(long timestamp,
                              org.apache.iotdb.udf.api.type.Binary value)
                       throws java.io.IOException
        Specified by:
        putBinary in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putString

        public void putString​(long timestamp,
                              java.lang.String value)
                       throws java.io.IOException
        Specified by:
        putString in interface org.apache.iotdb.udf.api.collector.PointCollector
        Throws:
        java.io.IOException
      • putNull

        public void putNull​(long timestamp)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • constructPointReaderUsingTrivialEvictionStrategy

        public LayerPointReader constructPointReaderUsingTrivialEvictionStrategy()
      • setEvictionUpperBound

        public void setEvictionUpperBound​(int evictionUpperBound)
        Parameters:
        evictionUpperBound - the index of the first element that cannot be evicted. in other words, elements whose index are less than the evictionUpperBound can be evicted.