public class FieldHeader extends Object
| Constructor and Description |
|---|
FieldHeader(FieldHeader parent,
String fieldName,
DataType dataType,
int[] dims,
long positionBuffer,
long expectedNumberOfBytes)
Constructs new serializer field header
|
FieldHeader(String fieldName,
DataType dataType,
int[] dims,
long positionBuffer,
long expectedNumberOfBytes)
Constructs new serializer field header
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<FieldHeader> |
findHeaderFor(List<FieldHeader> fieldHeaderList,
String fieldName) |
List<FieldHeader> |
getChildren() |
long |
getDataBufferPosition() |
int |
getDataDimension() |
int[] |
getDataDimensions() |
DataType |
getDataType() |
long |
getExpectedNumberOfDataBytes() |
String |
getFieldName() |
Optional<FieldHeader> |
getParent() |
String |
toString() |
public FieldHeader(FieldHeader parent, String fieldName, DataType dataType, int[] dims, long positionBuffer, long expectedNumberOfBytes)
parent - the optional parent field header (for cascaded objects)fieldName - the clear text field name descriptiondataType - the data type of that fielddims - array with length indicating the number-of-dimensions and indices the length of each dimensionpositionBuffer - the position from which the actual data can be parsed onwardsexpectedNumberOfBytes - the expected number of bytes to skip the data blockpublic FieldHeader(String fieldName, DataType dataType, int[] dims, long positionBuffer, long expectedNumberOfBytes)
fieldName - the clear text field name descriptiondataType - the data type of that fielddims - array with length indicating the number-of-dimensions and indices the length of each dimensionpositionBuffer - the position from which the actual data can be parsed onwardsexpectedNumberOfBytes - the expected number of bytes to skip the data blockpublic List<FieldHeader> getChildren()
public long getDataBufferPosition()
public int getDataDimension()
public int[] getDataDimensions()
public DataType getDataType()
public long getExpectedNumberOfDataBytes()
public String getFieldName()
public Optional<FieldHeader> getParent()
public static Optional<FieldHeader> findHeaderFor(List<FieldHeader> fieldHeaderList, String fieldName)
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.