public class NetworkBytesReference extends BytesReference
Constructor and Description |
---|
NetworkBytesReference(BytesArray bytesArray,
int writeIndex,
int readIndex) |
Modifier and Type | Method and Description |
---|---|
byte |
get(int index) |
java.nio.ByteBuffer |
getReadByteBuffer() |
int |
getReadIndex() |
int |
getReadRemaining() |
java.nio.ByteBuffer |
getWriteByteBuffer() |
int |
getWriteIndex() |
int |
getWriteRemaining() |
boolean |
hasReadRemaining() |
boolean |
hasWriteRemaining() |
void |
incrementRead(int delta) |
void |
incrementWrite(int delta) |
int |
length() |
long |
ramBytesUsed() |
NetworkBytesReference |
slice(int from,
int length) |
org.apache.lucene.util.BytesRef |
toBytesRef() |
static void |
vectorizedIncrementReadIndexes(java.lang.Iterable<NetworkBytesReference> references,
int delta) |
static NetworkBytesReference |
wrap(BytesArray bytesArray) |
static NetworkBytesReference |
wrap(BytesArray bytesArray,
int writeIndex,
int readIndex) |
compareTo, equals, hashCode, iterator, streamInput, toBytes, utf8ToString, writeTo
public NetworkBytesReference(BytesArray bytesArray, int writeIndex, int readIndex)
public static NetworkBytesReference wrap(BytesArray bytesArray)
public static NetworkBytesReference wrap(BytesArray bytesArray, int writeIndex, int readIndex)
public byte get(int index)
get
in class BytesReference
public int length()
length
in class BytesReference
public NetworkBytesReference slice(int from, int length)
slice
in class BytesReference
public org.apache.lucene.util.BytesRef toBytesRef()
toBytesRef
in class BytesReference
public long ramBytesUsed()
public int getWriteIndex()
public void incrementWrite(int delta)
public int getWriteRemaining()
public boolean hasWriteRemaining()
public int getReadIndex()
public void incrementRead(int delta)
public int getReadRemaining()
public boolean hasReadRemaining()
public java.nio.ByteBuffer getWriteByteBuffer()
public java.nio.ByteBuffer getReadByteBuffer()
public static void vectorizedIncrementReadIndexes(java.lang.Iterable<NetworkBytesReference> references, int delta)