public static enum RecordSerializer.SerializationResult extends Enum<RecordSerializer.SerializationResult>
Enum Constant and Description |
---|
FULL_RECORD |
FULL_RECORD_MEMORY_SEGMENT_FULL |
PARTIAL_RECORD_MEMORY_SEGMENT_FULL |
Modifier and Type | Method and Description |
---|---|
boolean |
isFullBuffer()
Whether the target buffer is full after the serialization process.
|
boolean |
isFullRecord()
Whether the full record was serialized and completely written to
a target buffer.
|
static RecordSerializer.SerializationResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecordSerializer.SerializationResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordSerializer.SerializationResult PARTIAL_RECORD_MEMORY_SEGMENT_FULL
public static final RecordSerializer.SerializationResult FULL_RECORD_MEMORY_SEGMENT_FULL
public static final RecordSerializer.SerializationResult FULL_RECORD
public static RecordSerializer.SerializationResult[] values()
for (RecordSerializer.SerializationResult c : RecordSerializer.SerializationResult.values()) System.out.println(c);
public static RecordSerializer.SerializationResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isFullRecord()
public boolean isFullBuffer()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.