public class WriteDocumentContext extends Object implements DocumentContext
| Modifier and Type | Field and Description |
|---|---|
protected long |
position |
protected int |
tmpHeader |
protected Wire |
wire |
| Constructor and Description |
|---|
WriteDocumentContext(Wire wire) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
index()
Index last read, only available for read contexts.
|
boolean |
isMetaData() |
boolean |
isNotComplete() |
boolean |
isPresent() |
void |
metaData(boolean metaData)
Set the metaData flag.
|
protected long |
position() |
int |
sourceId() |
void |
start(boolean metaData) |
Wire |
wire() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisData, rollbackOnCloseprotected Wire wire
protected long position
protected int tmpHeader
public WriteDocumentContext(Wire wire)
public void start(boolean metaData)
public boolean isMetaData()
isMetaData in interface DocumentContextpublic void metaData(boolean metaData)
DocumentContextmetaData in interface DocumentContextmetaData - write as metaData instead of data if true.public void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean isPresent()
isPresent in interface DocumentContextpublic Wire wire()
wire in interface DocumentContextprotected long position()
public long index()
SourceContextindex in interface SourceContextpublic int sourceId()
sourceId in interface SourceContextpublic boolean isNotComplete()
isNotComplete in interface DocumentContextCopyright © 2018. All rights reserved.