Class ElasticSerializableTVList
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.datastructure.tv.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 Summary
Fields Modifier and Type Field Description protected java.util.List<org.apache.iotdb.tsfile.utils.BitMap>bitMapsthe bitmap used to indicate whether one value is null in the tvLists.protected org.apache.iotdb.db.mpp.transformation.datastructure.tv.ElasticSerializableTVList.LRUCachecacheprotected intcacheSizeprotected org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypedataTypeprotected intevictionUpperBoundprotected intinternalTVListCapacityprotected floatmemoryLimitInMBprotected longqueryIdprotected intsizeprotected java.util.List<SerializableTVList>tvLists
-
Constructor Summary
Constructors Modifier Constructor Description protectedElasticSerializableTVList(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, long queryId, float memoryLimitInMB, int cacheSize)protectedElasticSerializableTVList(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, long queryId, float memoryLimitInMB, int internalTVListCapacity, int cacheSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LayerPointReaderconstructPointReaderUsingTrivialEvictionStrategy()org.apache.iotdb.tsfile.utils.BinarygetBinary(int index)booleangetBoolean(int index)org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetDataType()doublegetDouble(int index)floatgetFloat(int index)intgetInt(int index)longgetLong(int index)java.lang.StringgetString(int index)longgetTime(int index)booleanisNull(int index)static ElasticSerializableTVListnewElasticSerializableTVList(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, long queryId, float memoryLimitInMB, int cacheSize)voidput(long timestamp, java.lang.Object value)voidputBinary(long timestamp, org.apache.iotdb.udf.api.type.Binary value)voidputBoolean(long timestamp, boolean value)voidputDouble(long timestamp, double value)voidputFloat(long timestamp, float value)voidputInt(long timestamp, int value)voidputLong(long timestamp, long value)voidputNull(long timestamp)voidputString(long timestamp, java.lang.String value)voidsetEvictionUpperBound(int evictionUpperBound)intsize()
-
-
-
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
-
tvLists
protected java.util.List<SerializableTVList> tvLists
-
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
-
put
public void put(long timestamp, java.lang.Object value) throws java.io.IOException, QueryProcessException- Throws:
java.io.IOExceptionQueryProcessException
-
putInt
public void putInt(long timestamp, int value) throws java.io.IOException- Specified by:
putIntin interfaceorg.apache.iotdb.udf.api.collector.PointCollector- Throws:
java.io.IOException
-
putLong
public void putLong(long timestamp, long value) throws java.io.IOException- Specified by:
putLongin interfaceorg.apache.iotdb.udf.api.collector.PointCollector- Throws:
java.io.IOException
-
putFloat
public void putFloat(long timestamp, float value) throws java.io.IOException- Specified by:
putFloatin interfaceorg.apache.iotdb.udf.api.collector.PointCollector- Throws:
java.io.IOException
-
putDouble
public void putDouble(long timestamp, double value) throws java.io.IOException- Specified by:
putDoublein interfaceorg.apache.iotdb.udf.api.collector.PointCollector- Throws:
java.io.IOException
-
putBoolean
public void putBoolean(long timestamp, boolean value) throws java.io.IOException- Specified by:
putBooleanin interfaceorg.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:
putBinaryin interfaceorg.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:
putStringin interfaceorg.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.
-
-