Class DeviceEntry


  • public class DeviceEntry
    extends java.lang.Object
    device entry in id table
    • Constructor Detail

      • DeviceEntry

        public DeviceEntry​(IDeviceID deviceID)
    • Method Detail

      • getSchemaEntry

        public SchemaEntry getSchemaEntry​(java.lang.String measurementName)
        get schema entry of the measurement
        Parameters:
        measurementName - name of the measurement
        Returns:
        if exist, schema entry of the measurement. if not exist, null
      • putSchemaEntry

        public void putSchemaEntry​(java.lang.String measurementName,
                                   SchemaEntry schemaEntry)
        put new schema entry of the measurement
        Parameters:
        measurementName - name of the measurement
        schemaEntry - schema entry of the measurement
      • contains

        public boolean contains​(java.lang.String measurementName)
        whether the device entry contains the measurement
        Parameters:
        measurementName - name of the measurement
        Returns:
        whether the device entry contains the measurement
      • isAligned

        public boolean isAligned()
      • setAligned

        public void setAligned​(boolean aligned)
      • getDeviceID

        public IDeviceID getDeviceID()
      • putLastTimeMap

        public void putLastTimeMap​(long timePartition,
                                   long lastTime)
      • putFlushTimeMap

        public void putFlushTimeMap​(long timePartition,
                                    long flushTime)
      • updateLastTimeMap

        public long updateLastTimeMap​(long timePartition,
                                      long lastTime)
      • updateFlushTimeMap

        public long updateFlushTimeMap​(long timePartition,
                                       long flushTime)
      • updateGlobalFlushTime

        public void updateGlobalFlushTime​(long flushTime)
      • setGlobalFlushTime

        public void setGlobalFlushTime​(long globalFlushTime)
      • getLastTime

        public java.lang.Long getLastTime​(long timePartition)
      • getFlushTime

        public java.lang.Long getFlushTime​(long timePartition)
      • getLastTimeWithDefaultValue

        public java.lang.Long getLastTimeWithDefaultValue​(long timePartition)
      • getFLushTimeWithDefaultValue

        public java.lang.Long getFLushTimeWithDefaultValue​(long timePartition)
      • getGlobalFlushTime

        public long getGlobalFlushTime()
      • clearLastTime

        public void clearLastTime()
      • clearFlushTime

        public void clearFlushTime()
      • getMeasurementMap

        public java.util.Map<java.lang.String,​SchemaEntry> getMeasurementMap()
      • 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