public final class BlockHeaderV6
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
(package private) int |
compressedDataWords
Data length of compressed, following data in words.
|
(package private) int |
compressionType
Type of data compression, 0 = none, 1 = lz4 , 2 = lz4_best, 3 = gzip.
|
(package private) java.lang.String |
compressionTypeStr |
(package private) int |
count
Number of events in record.
|
(package private) int |
currentEventIndex
The index into the "events" list of the element that
is currently being looked at (starting at 0).
|
(package private) java.lang.String |
error
Contains description of any error in record's data.
|
(package private) java.util.ArrayList<EvioHeader> |
events
If error somewhere in this record, store reference to each contained event.
|
(package private) long |
filePos
Position of record in file.
|
(package private) boolean |
hasDictionary
Record has dictionary event.
|
(package private) int |
headerLen
Record's header length value (32-bit words).
|
(package private) int |
indexArrayBytes
Index array length in bytes.
|
(package private) int |
infoWord
Word containing version, hasDictionary, and is Last info.
|
(package private) boolean |
isLast
Is last record in file.
|
(package private) long |
len
Record's length value (32-bit words), inclusive.
|
(package private) static int |
MAGIC_INT |
(package private) int |
place
Place of this record in file/buffer or record number.
|
(package private) long |
register1
User defined long register 1.
|
(package private) long |
register2
User defined long register 2.
|
(package private) int |
totalBytes
Total bytes of header + index + user header.
|
(package private) int |
uncompressedDataBytes
Following data, uncompressed, in bytes.
|
(package private) int |
userHeaderBytes
Length of user defined data in bytes.
|
(package private) int |
version
Evio version.
|
Constructor and Description |
---|
BlockHeaderV6() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
(package private) void |
setData(java.nio.ByteBuffer recordInts)
Set members given an array containing the record header values.
|
(package private) void |
setData(int[] recordInts,
java.nio.ByteOrder order)
Set members given an array containing the record header values.
|
(package private) void |
setInfoWord(int infoWord)
Given the info word, set version, isLast, and hasDictionary values.
|
java.lang.String |
toString() |
static int MAGIC_INT
long len
int headerLen
int count
long filePos
int place
int infoWord
int version
boolean hasDictionary
boolean isLast
int indexArrayBytes
int userHeaderBytes
int uncompressedDataBytes
int compressionType
java.lang.String compressionTypeStr
int compressedDataWords
long register1
long register2
int totalBytes
java.lang.String error
int currentEventIndex
final java.util.ArrayList<EvioHeader> events
public java.lang.Object clone()
clone
in class java.lang.Object
void setInfoWord(int infoWord)
infoWord
- info word of record headervoid setData(int[] recordInts, java.nio.ByteOrder order)
recordInts
- array containing the record header values in proper order.order
- byte order of data in recordInts so longs can be parsed properly.void setData(java.nio.ByteBuffer recordInts)
recordInts
- array containing the record header values in proper order.public java.lang.String toString()
toString
in class java.lang.Object