Package io.deephaven.base.log
Interface LogOutput
- All Known Subinterfaces:
LogEntry
- All Known Implementing Classes:
DelayedLogEntryImpl,DelayedLogEntryImpl2,LogEntry.Null,LogEntryImpl,LogOutput.Null,LogOutputBaseImpl,LogOutputCsvImpl,LogOutputStringImpl
public interface LogOutput
Collects output for efficient textual logging. The append methods are intended to behave like StringBuilder to the
extent possible, but the fast loggers make no pretense about handling Unicode or producing anything but good old
ASCII.
Note that although the output will probably be single byte ASCII, we behave like StringBuilder and by the standard overload and promotion rules appending a byte actually appends an integer ("65") not a character ("A").
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LogOutput.ObjFormatter<LogOutputAppendable[]> Formats an array of LogOutputAppendable instancesstatic final LogOutput.ObjFormatter<Collection<? extends LogOutputAppendable>> Formats a Collection of LogOutputAppendable instancesstatic final LogOutput.Nullstatic final LogOutput.ObjFormatter<String[]> Formats a String arraystatic final LogOutput.ObjFormatter<Collection<? extends CharSequence>> Formats a Collection of CharSequence instances, such as Strings -
Method Summary
Modifier and TypeMethodDescriptionappend(boolean b) append(byte[] ba) append(byte[] ba, byte terminator) append(byte[] ba, int pos, int length) append(char c) append(int i) append(long l) append(short s) append(LogOutput.LongFormatter formatter, long n) <T> LogOutputappend(LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogOutputappend(LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) <T,U> LogOutput append(LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) append(LogOutputAppendable appendable) default LogOutputdefault LogOutputappend(CharSequence seq) append(CharSequence seq, int start, int length) default LogOutputdefault LogOutputdefault LogOutputappend(ByteBuffer bb) Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer.appendDouble(double f) default LogOutputappendTimestamp(long utcMillis, TimestampBuffer tb) appendTimestampMicros(long utcMicros, TimestampBufferMicros tb) clear()close()getBuffer(int i) intintnf()nl()intintsize()start()
-
Field Details
-
STRING_ARRAY_FORMATTER
Formats a String array -
APPENDABLE_ARRAY_FORMATTER
Formats an array of LogOutputAppendable instances -
APPENDABLE_COLLECTION_FORMATTER
static final LogOutput.ObjFormatter<Collection<? extends LogOutputAppendable>> APPENDABLE_COLLECTION_FORMATTERFormats a Collection of LogOutputAppendable instances -
STRING_COLLECTION_FORMATTER
Formats a Collection of CharSequence instances, such as Strings -
NULL
-
-
Method Details
-
start
LogOutput start() -
append
-
append
-
append
-
append
-
append
-
appendDouble
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer. -
appendTimestamp
-
appendTimestampMicros
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
appendDouble
-
markEndOfHeader
LogOutput markEndOfHeader() -
getEndOfHeaderOffset
int getEndOfHeaderOffset() -
nf
LogOutput nf() -
nl
LogOutput nl() -
close
LogOutput close() -
relativeSize
int relativeSize() -
size
int size() -
getBufferCount
int getBufferCount() -
getBuffer
-
clear
LogOutput clear()
-