public class HdfsTextItemWriter<T>
extends org.springframework.batch.item.support.AbstractItemStreamItemWriter<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
HdfsTextItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.springframework.data.hadoop.store.DataStoreWriter<byte[]> |
getStoreWriter() |
void |
setLineAggregator(org.springframework.batch.item.file.transform.LineAggregator<T> lineAggregator)
Public setter for the
LineAggregator. |
void |
setStoreWriter(org.springframework.data.hadoop.store.DataStoreWriter<byte[]> storeWriter) |
void |
update(org.springframework.batch.item.ExecutionContext executionContext) |
void |
write(List list)
Aggregates the items to a single string and writes the data out using
OutputStreamWriter as a byte array. |
getExecutionContextKey, open, setExecutionContextName, setNamepublic void write(List list) throws Exception
OutputStreamWriter as a byte array.list - of objects that will be written to the specified fsUri.Exceptionpublic void update(org.springframework.batch.item.ExecutionContext executionContext)
update in interface org.springframework.batch.item.ItemStreamupdate in class org.springframework.batch.item.ItemStreamSupportpublic void close()
close in interface org.springframework.batch.item.ItemStreamclose in class org.springframework.batch.item.ItemStreamSupportpublic void setLineAggregator(org.springframework.batch.item.file.transform.LineAggregator<T> lineAggregator)
LineAggregator. This will be used to translate the item into a line for output.lineAggregator - the LineAggregator to setpublic org.springframework.data.hadoop.store.DataStoreWriter<byte[]> getStoreWriter()
public void setStoreWriter(org.springframework.data.hadoop.store.DataStoreWriter<byte[]> storeWriter)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.