public interface KeyNameMapper extends Cloneable
Modifier and Type | Method and Description |
---|---|
Integer |
addMappedField(String field) |
KeyNameMapper |
clone()
Clones the key name mapper
|
String |
getFieldForIndex(Integer index)
Gets the field for the index
|
Set<String> |
getFieldSet()
Gets a set of fields mapper
|
int |
getIndexForField(String field)
Gets the index used for the given field
|
Map<Integer,String> |
getMappings()
Provides a Map containing the index to field mappings
|
int |
getValueMarker() |
boolean |
isFullyMapped(Key key) |
boolean |
isMapped(String field)
Check if a field is mapped
|
void |
setValueMarker(int index) |
int |
size()
The amount of mapped fields
|
int getIndexForField(String field)
field
- The field to request the mapped index forMap<Integer,String> getMappings()
boolean isMapped(String field)
field
- The field to check if it is mappedint size()
String getFieldForIndex(Integer index)
index
- The index to get the field name forKeyNameMapper clone()
void setValueMarker(int index)
int getValueMarker()
boolean isFullyMapped(Key key)
Copyright © 2015. All rights reserved.