public void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ) throws KettleXMLException { m_incomingKeyField = XMLHandler.getTagValue( stepnode, "incoming_key_field" ); m_incomingResultField = XMLHandler.getTagValue( stepnode, "incoming_result_field" ); this.namedCluster = namedClusterLoadSaveUtil.loadClusterConfig( namedClusterService, null, repository, metaStore, stepnode, log ); try { m_mapping = namedClusterServiceLocator.getService( this.namedCluster, HBaseService.class ).getMappingFactory() .createMapping(); } catch ( ClusterInitializationException e ) { throw new KettleXMLException( e ); } m_mapping.loadXML( stepnode ); }
public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException { m_incomingKeyField = rep.getStepAttributeString( id_step, 0, "incoming_key_field" ); m_incomingResultField = rep.getStepAttributeString( id_step, 0, "incoming_result_field" ); this.namedCluster = namedClusterLoadSaveUtil.loadClusterConfig( namedClusterService, id_step, rep, metaStore, null, log ); try { m_mapping = namedClusterServiceLocator.getService( this.namedCluster, HBaseService.class ).getMappingFactory() .createMapping(); } catch ( ClusterInitializationException e ) { throw new KettleXMLException( e ); } m_mapping.readRep( rep, id_step ); }
Mapping resultMapping = mappingFactory.createMapping( tableName, mappingName, decodedKeyName, keyType ); resultMapping.setTupleMapping( isTupleMapping ); if ( !Const.isEmpty( tupleFamilies ) ) {
try { tempMapping = getService().getMappingFactory().createMapping(); } catch ( Exception e ) { getLog().logError( e.getMessage() );
@Override public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException { this.namedCluster = namedClusterLoadSaveUtil.loadClusterConfig( namedClusterService, id_step, rep, metaStore, null, getLog() ); m_coreConfigURL = rep.getStepAttributeString( id_step, 0, "core_config_url" ); m_defaultConfigURL = rep.getStepAttributeString( id_step, 0, "default_config_url" ); m_targetTableName = rep.getStepAttributeString( id_step, 0, "target_table_name" ); m_targetMappingName = rep.getStepAttributeString( id_step, 0, "target_mapping_name" ); m_deleteRowKey = rep.getStepAttributeBoolean( id_step, 0, "delete_rows_by_key" ); m_writeBufferSize = rep.getStepAttributeString( id_step, 0, "write_buffer_size" ); m_disableWriteToWAL = rep.getStepAttributeBoolean( id_step, 0, "disable_wal" ); Mapping tempMapping = null; try { tempMapping = getService().getMappingFactory().createMapping(); } catch ( Exception e ) { getLog().logError( e.getMessage() ); } if ( tempMapping != null && tempMapping.readRep( rep, id_step ) ) { m_mapping = tempMapping; } else { m_mapping = null; } }
hBaseService.getMappingFactory().createMapping( tableName, m_existingMappingNamesCombo.getText().trim() ); boolean keyDefined = false; boolean moreThanOneKey = false;
Mapping tempMapping = mappingFactory.createMapping(); if ( tempMapping.readRep( rep, id_step ) ) { m_mapping = tempMapping;
Mapping tempMapping = mappingFactory.createMapping(); if ( tempMapping.loadXML( stepnode ) ) { m_mapping = tempMapping;
Mapping testMapping = mappingFactory.createMapping( tableName, mappingName, keyName, keyType ); testMapping.setTupleMapping( true ); String family = "";
hBaseService.getMappingFactory().createMapping( tableName, mappingDefinition.getMappingName() );
Mapping testMapping = mappingFactory.createMapping( tableName, mappingName, keyName, keyType );