public class BytesArray extends Object implements BytesReference
BytesReference.Helper| 修飾子とタイプ | フィールドと説明 |
|---|---|
static BytesArray |
EMPTY |
| コンストラクタと説明 |
|---|
BytesArray(byte[] bytes) |
BytesArray(byte[] bytes,
int offset,
int length) |
BytesArray(org.apache.lucene.util.BytesRef bytesRef) |
BytesArray(org.apache.lucene.util.BytesRef bytesRef,
boolean deepCopy) |
BytesArray(String bytes) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
byte[] |
array()
The underlying byte array (if exists).
|
int |
arrayOffset()
The offset into the underlying byte array.
|
BytesArray |
copyBytesArray()
Returns the bytes copied over as a byte array.
|
org.apache.lucene.util.BytesRef |
copyBytesRef()
Converts to a copied Lucene BytesRef.
|
boolean |
equals(Object obj) |
byte |
get(int index)
Returns the byte at the specified index.
|
boolean |
hasArray()
Is there an underlying byte array for this bytes reference.
|
int |
hashCode() |
int |
length()
The length.
|
BytesReference |
slice(int from,
int length)
Slice the bytes from the from index up to length.
|
StreamInput |
streamInput()
A stream input of the bytes.
|
byte[] |
toBytes()
Returns the bytes as a single byte array.
|
BytesArray |
toBytesArray()
Returns the bytes as a byte array, possibly sharing the underlying byte buffer.
|
org.apache.lucene.util.BytesRef |
toBytesRef()
Converts to Lucene BytesRef.
|
org.jboss.netty.buffer.ChannelBuffer |
toChannelBuffer()
Returns the bytes as a channel buffer.
|
String |
toUtf8()
Converts to a string based on utf8.
|
void |
writeTo(GatheringByteChannel channel)
Writes the bytes directly to the channel.
|
void |
writeTo(OutputStream os)
Writes the bytes directly to the output stream.
|
public static final BytesArray EMPTY
public BytesArray(String bytes)
public BytesArray(org.apache.lucene.util.BytesRef bytesRef)
public BytesArray(org.apache.lucene.util.BytesRef bytesRef,
boolean deepCopy)
public BytesArray(byte[] bytes)
public BytesArray(byte[] bytes,
int offset,
int length)
public byte get(int index)
BytesReferenceget インタフェース内 BytesReferencepublic int length()
BytesReferencelength インタフェース内 BytesReferencepublic BytesReference slice(int from, int length)
BytesReferenceslice インタフェース内 BytesReferencepublic StreamInput streamInput()
BytesReferencestreamInput インタフェース内 BytesReferencepublic void writeTo(OutputStream os) throws IOException
BytesReferencewriteTo インタフェース内 BytesReferenceIOExceptionpublic void writeTo(GatheringByteChannel channel) throws IOException
BytesReferencewriteTo インタフェース内 BytesReferenceIOExceptionpublic byte[] toBytes()
BytesReferencetoBytes インタフェース内 BytesReferencepublic BytesArray toBytesArray()
BytesReferencetoBytesArray インタフェース内 BytesReferencepublic BytesArray copyBytesArray()
BytesReferencecopyBytesArray インタフェース内 BytesReferencepublic org.jboss.netty.buffer.ChannelBuffer toChannelBuffer()
BytesReferencetoChannelBuffer インタフェース内 BytesReferencepublic boolean hasArray()
BytesReferencehasArray インタフェース内 BytesReferencepublic byte[] array()
BytesReferencearray インタフェース内 BytesReferencepublic int arrayOffset()
BytesReferencearrayOffset インタフェース内 BytesReferencepublic String toUtf8()
BytesReferencetoUtf8 インタフェース内 BytesReferencepublic org.apache.lucene.util.BytesRef toBytesRef()
BytesReferencetoBytesRef インタフェース内 BytesReferencepublic org.apache.lucene.util.BytesRef copyBytesRef()
BytesReferencecopyBytesRef インタフェース内 BytesReferenceCopyright © 2009–2016. All rights reserved.