class DBFieldMap {

	public void addEntry(Field fieldValue, long longValue) {
		if (!fieldClass.isInstance(fieldValue)) {
			throw new IllegalArgumentException("Instance of " + fieldClass.getName() + " expected");
		}
		IndexField indexField = IndexField.getIndexField(fieldValue, longValue);
		Record rec = schema.createRecord(indexField);
		try {
			long txId = dbh.startTransaction();
			indexTable.putRecord(rec);
			dbh.endTransaction(txId, true);
		} catch (IOException e) {
			throw new RuntimeException(e);	
		} finally {
				
		}
	}

	public  DBFieldMap(Class<? extends Field> fieldClass, int cacheSizeMB);

}