public abstract class ByteArrayRequest extends WritableRequest
conf, UNKNOWN_SIZE
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Get request data
|
DataInput |
getDataInput()
Get request data in the form of
DataInput |
int |
getSerializedSize()
Get the size of the request in serialized form.
|
UnsafeByteArrayInputStream |
getUnsafeByteArrayInput()
Wraps the byte array with UnsafeByteArrayInputStream stream.
|
getClientId, getConf, getRequestId, getType, readFields, setClientId, setConf, setRequestId, write
public byte[] getData()
public DataInput getDataInput()
DataInput
DataInput
public UnsafeByteArrayInputStream getUnsafeByteArrayInput()
public int getSerializedSize()
WritableRequest
getSerializedSize
in class WritableRequest
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.