org.elasticsearch.common
Class BytesHolder
java.lang.Object
org.elasticsearch.common.BytesHolder
- All Implemented Interfaces:
- Streamable
public class BytesHolder
- extends java.lang.Object
- implements Streamable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
BytesHolder
public BytesHolder(byte[] bytes)
BytesHolder
public BytesHolder(byte[] bytes,
int offset,
int length)
copyBytes
public byte[] copyBytes()
bytes
public byte[] bytes()
offset
public int offset()
length
public int length()
readBytesHolder
public static BytesHolder readBytesHolder(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
bytesEquals
public boolean bytesEquals(BytesHolder other)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object