public class EventDataStream extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_PER_EVENT
The data size of an event.
|
static int |
MAX_EVENTS_PER_FILE
The number of events stored in a single file.
|
| Constructor and Description |
|---|
EventDataStream(FileNameGenerator target,
IErrorLogger logger)
Create an instance of stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream.
|
void |
write(int dataId,
long value)
Write an event data into a file.
|
public static final int MAX_EVENTS_PER_FILE
public static final int BYTES_PER_EVENT
public EventDataStream(FileNameGenerator target, IErrorLogger logger)
target - is an object generating file names.logger - is to report errors that occur in this class.Copyright © 2023. All rights reserved.