Modifier and Type | Field and Description |
---|---|
static byte[] |
MAX_TAGS_LEN |
Constructor and Description |
---|
HFile.FileInfo() |
Modifier and Type | Method and Description |
---|---|
HFile.FileInfo |
append(byte[] k,
byte[] v,
boolean checkPrefix)
Append the given key/value pair to the file info, optionally checking the
key prefix.
|
void |
clear() |
Comparator<? super byte[]> |
comparator() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<byte[],byte[]>> |
entrySet() |
boolean |
equals(Object o) |
byte[] |
firstKey() |
byte[] |
get(Object key) |
int |
hashCode() |
SortedMap<byte[],byte[]> |
headMap(byte[] toKey) |
boolean |
isEmpty() |
Set<byte[]> |
keySet() |
byte[] |
lastKey() |
byte[] |
put(byte[] key,
byte[] value) |
void |
putAll(Map<? extends byte[],? extends byte[]> m) |
byte[] |
remove(Object key) |
int |
size() |
SortedMap<byte[],byte[]> |
subMap(byte[] fromKey,
byte[] toKey) |
SortedMap<byte[],byte[]> |
tailMap(byte[] fromKey) |
Collection<byte[]> |
values() |
public HFile.FileInfo append(byte[] k, byte[] v, boolean checkPrefix) throws IOException
k
- key to addv
- value to addcheckPrefix
- whether to check that the provided key does not start
with the reserved prefixIOException
- if the key or value is invalidpublic Comparator<? super byte[]> comparator()
comparator
in interface SortedMap<byte[],byte[]>
public boolean containsKey(Object key)
containsKey
in interface Map<byte[],byte[]>
public boolean containsValue(Object value)
containsValue
in interface Map<byte[],byte[]>
public boolean equals(Object o)
public int hashCode()
public SortedMap<byte[],byte[]> headMap(byte[] toKey)
public Set<byte[]> keySet()
public void putAll(Map<? extends byte[],? extends byte[]> m)
public SortedMap<byte[],byte[]> subMap(byte[] fromKey, byte[] toKey)
public SortedMap<byte[],byte[]> tailMap(byte[] fromKey)
public Collection<byte[]> values()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.