/** * Constructor * @param length the length for this array */ SparseArrayOfZonedDateTimes(int length, ZonedDateTime defaultValue) { super(ZonedDateTime.class, ArrayStyle.SPARSE, false); this.length = length; this.defaultValue = defaultValue; this.defaultValueAsLong = defaultValue != null ? defaultValue.toInstant().toEpochMilli() : nullValue; this.defaultZoneId = defaultValue != null ? zoneIdMap1.get(defaultValue.getZone()) : NULL_ZONE; this.values = new TIntLongHashMap((int)Math.max(length * 0.5, 10d), 0.8f, -1, defaultValueAsLong); this.zoneIds = new TIntShortHashMap((int)Math.max(length * 0.5, 10d), 0.8f, -1, defaultZoneId); }
public MetricTable(int timestampsSize) { this.timestampsSize = timestampsSize; this.t_bool = new TIntByteHashMap(timestampsSize, 1, -1, (byte) -1); this.t_16bit = new TIntShortHashMap(timestampsSize, 1, -1, (short) -1); this.t_32bit = new TIntIntHashMap(timestampsSize, 1, -1, -1); this.t_64bit = new TIntLongHashMap(timestampsSize, 1, -1, -1); this.t_dbl = new TIntDoubleHashMap(timestampsSize, 1, -1, -1); this.t_str = new TIntIntHashMap(timestampsSize, 1, -1, -1); this.t_hist = new TIntObjectHashMap<>(timestampsSize, 1, -1); this.t_empty = new TIntHashSet(timestampsSize, 1, -1); this.t_other = new TIntObjectHashMap<>(timestampsSize, 1, -1); }
public AutoDeltaIntShortMap() { this.changes = new ArrayList<>(5); this.container = new TIntShortHashMap(); this.baselineCommandCount = 0; }