public class DocumentContextHolder extends Object implements DocumentContext
Constructor and Description |
---|
DocumentContextHolder() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
DocumentContext |
documentContext() |
void |
documentContext(DocumentContext dc) |
long |
index()
Index last read, only available for read contexts.
|
boolean |
isClosed() |
boolean |
isMetaData()
Checks it the
DocumentContext is metadata. |
boolean |
isNotComplete() |
boolean |
isPresent()
Checks if the
DocumentContext is present. |
int |
sourceId()
Returns the source id of this source context.
|
@Nullable Wire |
wire()
Returns the
Wire associated with the Document . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isData, isOpen, rollbackOnClose
public boolean isMetaData()
DocumentContext
DocumentContext
is metadata. If it is, true
is
returned, otherwise false
.isMetaData
in interface DocumentContext
public boolean isPresent()
DocumentContext
DocumentContext
is present. If it is, true
is returned,
otherwise false
.isPresent
in interface DocumentContext
@Nullable public @Nullable Wire wire()
DocumentContext
Wire
associated with the Document
. It is possible that
null
is returned, depending on the implementation.wire
in interface DocumentContext
Wire
associated with the Document
.public boolean isNotComplete()
isNotComplete
in interface DocumentContext
public DocumentContext documentContext()
public void documentContext(DocumentContext dc)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DocumentContext
public int sourceId()
SourceContext
sourceId
in interface SourceContext
public long index() throws net.openhft.chronicle.core.io.IORuntimeException
SourceContext
index
in interface SourceContext
net.openhft.chronicle.core.io.IORuntimeException
- is the an error occurred while getting the indexpublic boolean isClosed()
Copyright © 2020. All rights reserved.