Create a a MapFieldSelectorparamfieldSelections maps from field names to FieldSelectorResults this.fieldSelections = fieldSelections;
this.fieldSelections = fieldSelections;
Create a a MapFieldSelectorparamfields fields to LOAD. All other fields are NO_LOAD. fieldSelections = new HashMap(fields.size()*5/3); for (int i=0; i<fields.size(); i++) fieldSelections.put(fields.get(i), FieldSelectorResult.LOAD);
fieldSelections = new HashMap(fields.size()*5/3); for (int i=0; i<fields.size(); i++) fieldSelections.put(fields.get(i), FieldSelectorResult.LOAD);
Create a a MapFieldSelectorparamfields fields to LOAD. All other fields are NO_LOAD. fieldSelections = new HashMap(fields.length*5/3); for (int i=0; i<fields.length; i++) fieldSelections.put(fields[i], FieldSelectorResult.LOAD);
fieldSelections = new HashMap(fields.length*5/3); for (int i=0; i<fields.length; i++) fieldSelections.put(fields[i], FieldSelectorResult.LOAD);
Load field according to its associated value in fieldSelectionsparamfield a field namereturnthe fieldSelections value that field maps to or NO_LOAD if none. FieldSelectorResult selection = (FieldSelectorResult) fieldSelections.get(field); return selection!=null ? selection : FieldSelectorResult.NO_LOAD;
FieldSelectorResult selection = (FieldSelectorResult) fieldSelections.get(field); return selection!=null ? selection : FieldSelectorResult.NO_LOAD;