Package io.deephaven.io.log.impl
Class LogOutputBaseImpl
java.lang.Object
io.deephaven.io.log.impl.LogOutputBaseImpl
- All Implemented Interfaces:
LogOutput,ByteBufferSink
- Direct Known Subclasses:
LogOutputCsvImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
LogOutput.LongFormatter, LogOutput.Null, LogOutput.ObjFormatter<T>, LogOutput.ObjIntIntFormatter<T>, LogOutput.ObjObjFormatter<T,U> -
Field Summary
FieldsFields inherited from interface io.deephaven.base.log.LogOutput
APPENDABLE_ARRAY_FORMATTER, APPENDABLE_COLLECTION_FORMATTER, BASIC_FORMATTER, BOOLEAN_ARRAY_FORMATTER, INT_ARRAY_FORMATTER, LOCAL_DATE_TIME_FORMATTER, MILLIS_FROM_EPOCH_FORMATTER, millisFormatter, NULL, NULL_TERMINATED_STRING_FORMATTER, SOCKADDR_FORMATTER, STRING_ARRAY_FORMATTER, STRING_COLLECTION_FORMATTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptBuffer(ByteBuffer b, int need) Dispose of the contents of the buffer b, probably by writing them to a channel, and return a new buffer in which writing can continue.clear()close()voidclose(ByteBuffer b) Dispose of the contents of the final buffer in an output sequence, probably by writing them to a channel.getBuffer(int i) intintintintsize()start()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.base.log.LogOutput
append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendDouble, appendDouble, appendTimestamp, appendTimestampMicros, nf, nl
-
Field Details
-
stream
-
-
Constructor Details
-
LogOutputBaseImpl
-
-
Method Details
-
markEndOfHeader
- Specified by:
markEndOfHeaderin interfaceLogOutput
-
getEndOfHeaderOffset
public int getEndOfHeaderOffset()- Specified by:
getEndOfHeaderOffsetin interfaceLogOutput
-
acceptBuffer
Description copied from interface:ByteBufferSinkDispose of the contents of the buffer b, probably by writing them to a channel, and return a new buffer in which writing can continue. The returned buffer must have at least need bytes of space remaining. The return value may be the same buffer, as long as it's remaining() value has been increased to be >= need.- Specified by:
acceptBufferin interfaceByteBufferSink- Parameters:
b- the buffer whose contents need to be disposed of.- Returns:
- the buffer in which further output should be written.
-
close
Description copied from interface:ByteBufferSinkDispose of the contents of the final buffer in an output sequence, probably by writing them to a channel. Note that the argument buffer may be empty. Then do whatever it takes to release the resources of the sink, probably by closing a channel.- Specified by:
closein interfaceByteBufferSink- Throws:
IOException
-
start
-
close
-
relativeSize
public int relativeSize()- Specified by:
relativeSizein interfaceLogOutput
-
size
public int size() -
getBufferCount
public int getBufferCount()- Specified by:
getBufferCountin interfaceLogOutput
-
getBuffer
-
clear
-