public class LookUpKey extends Object
LookUpTable
.Modifier and Type | Class and Description |
---|---|
static interface |
LookUpKey.View
Represents a view of
LookUpKey . |
Constructor and Description |
---|
LookUpKey()
Creates a new instance w/ default initial buffer size.
|
LookUpKey(int bufferSize)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.hadoop.io.Writable writable)
Appends an element into the buffer.
|
LookUpKey |
copy()
Returns a copy of this key.
|
boolean |
equals(Object obj) |
LookUpKey.View |
getDirectView()
Returns a direct view of this key.
|
LookUpKey.View |
getFrozenView()
Returns a frozen view of this key.
|
int |
hashCode() |
void |
reset()
Clears the buffer.
|
public LookUpKey()
public LookUpKey(int bufferSize)
bufferSize
- the initial buffer sizepublic void reset() throws IOException
IOException
- if failed to initialize the bufferpublic void add(org.apache.hadoop.io.Writable writable) throws IOException
writable
- the target elementIOException
- if error occurred while appending the elementIllegalArgumentException
- if the parameter is null
public LookUpKey copy() throws IOException
IOException
- if error occurred while creating a copypublic LookUpKey.View getDirectView()
public LookUpKey.View getFrozenView()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.