Class QueryUserAssignmentLoggerImpl
java.lang.Object
io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadSafeBase
io.deephaven.enterprise.binlog.internal.gen.QueryUserAssignmentLoggerImpl
- All Implemented Interfaces:
Logger,QueryUserAssignmentLogger,Closeable,Flushable,AutoCloseable
public final class QueryUserAssignmentLoggerImpl
extends MultiPartitionLoggerThreadSafeBase
implements QueryUserAssignmentLogger
Automatically generated Deephaven binary logger for DbInternal.QueryUserAssignmentLog format 1. For configuration details, see `io.deephaven.enterprise.schema.internal.LogFormat`
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe header encoder.static final classThe row encoder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final booleanIf this is a System namespacestatic final intThe log format versionstatic final intstatic final StringThe Namespacestatic final StringThe TableNameFields inherited from interface io.deephaven.enterprise.controller.assignment.QueryUserAssignmentLogger
NULL -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprotected final voidprotected final voidcommitBuffers(int numRows) static ByteBufferheader()voidlog(long Timestamp, String User, long QuerySerial, String QueryOwner, String[] AdminGroups, int AssignedSlot, String PolicyName, boolean IsReset, String Details) Encodes the data into this logger's buffer.The basic logger information.of(boolean flushOnLog, MultiPartitionWriter writer, DateTimeFormatter partitionFormatter) Initialize a logger for the DbInternal.QueryUserAssignmentLog table, with log format 1.protected final voidprotected final ByteBuffertoString()Methods inherited from class io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadSafeBase
close, flush
-
Field Details
-
IS_SYSTEM_NAMESPACE
public static final boolean IS_SYSTEM_NAMESPACEIf this is a System namespace- See Also:
-
NAMESPACE
The Namespace- See Also:
-
TABLE_NAME
The TableName- See Also:
-
LOG_FORMAT
public static final int LOG_FORMATThe log format version- See Also:
-
MAX_ENTRY_SIZE
public static final int MAX_ENTRY_SIZE- See Also:
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
-
Method Details
-
header
-
of
public static QueryUserAssignmentLoggerImpl of(boolean flushOnLog, MultiPartitionWriter writer, DateTimeFormatter partitionFormatter) Initialize a logger for the DbInternal.QueryUserAssignmentLog table, with log format 1. The returned logger will own a byte array buffer of size 2 MiB (`bufferSize`) whenflushOnLog == false, otherwise 1 MiB (`maxEntrySize`).- Parameters:
flushOnLog- if the returned logger should be flushed on every log callwriter- the writer for this loggerpartitionFormatter- A datetime formatter for time based partition using the Timestamp column.- Returns:
- the logger
-
log
public void log(long Timestamp, String User, long QuerySerial, String QueryOwner, String[] AdminGroups, int AssignedSlot, String PolicyName, boolean IsReset, String Details) throws IOException Encodes the data into this logger's buffer. If the remaining size of the buffer after logging is less than 1 MiB (`maxEntrySize`), this logger will be internallyflushed.- Specified by:
login interfaceQueryUserAssignmentLogger- Parameters:
Timestamp- the Timestamp value, in millis from the epochUser- the User valueQuerySerial- the QuerySerial valueQueryOwner- the QueryOwner valueAdminGroups- the AdminGroups valueAssignedSlot- the AssignedSlot valuePolicyName- the PolicyName valueIsReset- the IsReset valueDetails- the Details value- Throws:
IOException
-
loggerInfo
The basic logger information.- Returns:
- the basic logger information
-
toString
-
partition
- Throws:
IOException
-
takeBuffer
- Throws:
IOException
-
abortBuffer
protected final void abortBuffer() -
commitBuffer
- Throws:
IOException
-
commitBuffers
- Throws:
IOException
-