public class ChunkWriter extends Object implements Closeable
| Constructor and Description |
|---|
ChunkWriter(String chunkName,
OutputStream outputStream,
int version,
Date timestamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this reader and it's underlying input.
|
String |
getName()
Returns the chunk name.
|
Date |
getTimestamp()
Returns the index timestamp of last update of the index.
|
int |
getVersion()
Returns index version.
|
int |
writeChunk(Iterator<Map<String,String>> iterator)
Writes out the record iterator and returns the written record count.
|
public ChunkWriter(String chunkName, OutputStream outputStream, int version, Date timestamp) throws IOException
IOExceptionpublic String getName()
public int getVersion()
1.public Date getTimestamp()
public int writeChunk(Iterator<Map<String,String>> iterator) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.