java.lang.Comparable<RawComparable>public class TFile.Reader.Scanner.Entry extends java.lang.Object implements java.lang.Comparable<RawComparable>
| Constructor | Description |
|---|---|
Entry() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(byte[] buf) |
Compare the entry key to another key.
|
int |
compareTo(byte[] buf,
int offset,
int length) |
Compare the entry key to another key.
|
int |
compareTo(RawComparable key) |
Compare an entry with a RawComparable object.
|
boolean |
equals(java.lang.Object other) |
Compare whether this and other points to the same key value.
|
void |
get(BytesWritable key,
BytesWritable value) |
Copy the key and value in one shot into BytesWritables.
|
int |
getKey(byte[] buf) |
Copy the key into user supplied buffer.
|
int |
getKey(byte[] buf,
int offset) |
Copy the key into user supplied buffer.
|
int |
getKey(BytesWritable key) |
Copy the key into BytesWritable.
|
int |
getKeyLength() |
Get the length of the key.
|
java.io.DataInputStream |
getKeyStream() |
Streaming access to the key.
|
int |
getValue(byte[] buf) |
Copy value into user-supplied buffer.
|
int |
getValue(byte[] buf,
int offset) |
Copy value into user-supplied buffer.
|
long |
getValue(BytesWritable value) |
Copy the value into BytesWritable.
|
int |
getValueLength() |
Get the length of the value.
|
java.io.DataInputStream |
getValueStream() |
Stream access to value.
|
int |
hashCode() |
|
boolean |
isValueLengthKnown() |
Check whether it is safe to call getValueLength().
|
int |
writeKey(java.io.OutputStream out) |
Writing the key to the output stream.
|
long |
writeValue(java.io.OutputStream out) |
Writing the value to the output stream.
|
public int getKeyLength()
public void get(BytesWritable key, BytesWritable value) throws java.io.IOException
key - BytesWritable to hold key.value - BytesWritable to hold valuejava.io.IOException - raised on errors performing I/O.public int getKey(BytesWritable key) throws java.io.IOException
key - BytesWritable to hold the key.java.io.IOException - raised on errors performing I/O.public long getValue(BytesWritable value) throws java.io.IOException
value - value.java.io.IOException - raised on errors performing I/O.public int writeKey(java.io.OutputStream out)
throws java.io.IOException
out - The output streamjava.io.IOException - raised on errors performing I/O.public long writeValue(java.io.OutputStream out)
throws java.io.IOException
out - The output streamjava.io.IOException - raised on errors performing I/O.public int getKey(byte[] buf)
throws java.io.IOException
buf - The buffer supplied by user. The length of the buffer must
not be shorter than the key length.java.io.IOException - raised on errors performing I/O.public int getKey(byte[] buf,
int offset)
throws java.io.IOException
buf - The buffer supplied by user.offset - The starting offset of the user buffer where we should copy
the key into. Requiring the key-length + offset no greater
than the buffer length.java.io.IOException - raised on errors performing I/O.public java.io.DataInputStream getKeyStream()
public int getValueLength()
public int getValue(byte[] buf)
throws java.io.IOException
getValue(byte[]), getValue(byte[], int),
getValueStream().buf - buf.java.io.IOException - raised on errors performing I/O.public int getValue(byte[] buf,
int offset)
throws java.io.IOException
getValue(byte[]), getValue(byte[], int),
getValueStream().buf - buf.offset - offset.java.io.IOException - raised on errors performing I/O.public java.io.DataInputStream getValueStream()
throws java.io.IOException
getValue(byte[]),
getValue(byte[], int), getValueStream().java.io.IOException - raised on errors performing I/O.public boolean isValueLengthKnown()
public int compareTo(byte[] buf)
buf - The key buffer.public int compareTo(byte[] buf,
int offset,
int length)
buf - The key bufferoffset - offset into the key buffer.length - the length of the key.public int compareTo(RawComparable key)
compareTo in interface java.lang.Comparable<RawComparable>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.