项目:morpheus-core
文件:SparseArrayOfZonedDateTimes.java
/**
* 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,defaultZoneId);
}
项目:monsoon
文件:MetricTable.java
public MetricTable(int timestampsSize) {
this.timestampsSize = timestampsSize;
this.t_bool = new TIntByteHashMap(timestampsSize,1,(byte) -1);
this.t_16bit = new TIntShortHashMap(timestampsSize,(short) -1);
this.t_32bit = new TIntIntHashMap(timestampsSize,-1);
this.t_64bit = new TIntLongHashMap(timestampsSize,-1);
this.t_dbl = new TIntDoubleHashMap(timestampsSize,-1);
this.t_str = new TIntIntHashMap(timestampsSize,-1);
this.t_hist = new TIntObjectHashMap<>(timestampsSize,-1);
this.t_empty = new TIntHashSet(timestampsSize,-1);
this.t_other = new TIntObjectHashMap<>(timestampsSize,-1);
}
项目:pre-cu
文件:AutoDeltaIntShortMap.java
public AutoDeltaIntShortMap() {
this.changes = new ArrayList<>(5);
this.container = new TIntShortHashMap();
this.baselineCommandCount = 0;
}