/** * Construct Table value * * @param tableType the table type * @param initialCapacity the initial capacity of the map * @param loadFactor the load factory of the map * @exception IllegalArgumentException for a null argument */ public TableValueSupport(TableMetaType tableType, int initialCapacity, float loadFactor) { init(new HashMap<List<MetaValue>, CompositeValue>(initialCapacity, loadFactor), tableType); }
/** * Construct Table value * * @param tableType the table type * @param initialCapacity the initial capacity of the map * @param loadFactor the load factory of the map * @exception IllegalArgumentException for a null argument */ public TableValueSupport(TableMetaType tableType, int initialCapacity, float loadFactor) { init(new HashMap<List<MetaValue>, CompositeValue>(initialCapacity, loadFactor), tableType); }
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { ObjectInputStream.GetField getField = in.readFields(); HashMap<List<MetaValue>, CompositeValue> dataMap = (HashMap<List<MetaValue>, CompositeValue>) getField.get("dataMap", null); TableMetaType tableType = (TableMetaType) getField.get("tableType", null); try { init(dataMap, tableType); } catch (Exception e) { throw new RuntimeException("Unexpected error during deserialization", e); } } }
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { ObjectInputStream.GetField getField = in.readFields(); HashMap<List<MetaValue>, CompositeValue> dataMap = (HashMap<List<MetaValue>, CompositeValue>) getField.get("dataMap", null); TableMetaType tableType = (TableMetaType) getField.get("tableType", null); try { init(dataMap, tableType); } catch (Exception e) { throw new RuntimeException("Unexpected error during deserialization", e); } } }