public void autoMap ( final Datastore datastore ) { setDatastore ( datastore ) ; try ( DatastoreConnection con = datastore . openConnection ( ) ) { final SchemaNavigator schemaNavigator = con . getSchemaNavigator ( ) ; for ( final Entry < String , Column > entry : _map . entrySet ( ) ) { if ( entry . getValue ( ) == null ) { final String path = entry . getKey ( ) ; final Column column = schemaNavigator . convertToColumn ( path ) ; entry . setValue ( column ) ; } } } }
Automatically maps all unmapped paths by looking them up in a datastore .