public IndexerConf build() { checkNotNull(table, "table name"); IndexerConf conf = new IndexerConf(table); conf.setMappingType(mappingType != null ? mappingType : IndexerConf.DEFAULT_MAPPING_TYPE); conf.setRowReadMode(rowReadMode != null ? rowReadMode : IndexerConf.DEFAULT_ROW_READ_MODE); conf.setUniqueKeyField(uniqueKeyField != null ? uniqueKeyField : IndexerConf.DEFAULT_UNIQUE_KEY_FIELD); conf.setRowField(rowField); conf.setColumnFamilyField(columnFamilyField); conf.setTableNameField(tableNameField); conf.setMapperClass(mapperClass); conf.setUniqueKeyFormatterClass(uniqueKeyFormatterClass != null ? uniqueKeyFormatterClass : IndexerConf.DEFAULT_UNIQUE_KEY_FORMATTER); conf.setFieldDefinitions(fieldDefinitions); conf.setDocumentExtractDefinitions(documentExtractDefinitions); conf.setGlobalParams(globalParams); return conf; } }
public IndexerConf build() { checkNotNull(table, "table name"); IndexerConf conf = new IndexerConf(table); conf.setMappingType(mappingType != null ? mappingType : IndexerConf.DEFAULT_MAPPING_TYPE); conf.setRowReadMode(rowReadMode != null ? rowReadMode : IndexerConf.DEFAULT_ROW_READ_MODE); conf.setUniqueKeyField(uniqueKeyField != null ? uniqueKeyField : IndexerConf.DEFAULT_UNIQUE_KEY_FIELD); conf.setRowField(rowField); conf.setColumnFamilyField(columnFamilyField); conf.setTableNameField(tableNameField); conf.setMapperClass(mapperClass); conf.setUniqueKeyFormatterClass(uniqueKeyFormatterClass != null ? uniqueKeyFormatterClass : IndexerConf.DEFAULT_UNIQUE_KEY_FORMATTER); conf.setFieldDefinitions(fieldDefinitions); conf.setDocumentExtractDefinitions(documentExtractDefinitions); conf.setGlobalParams(globalParams); return conf; } }