Package | Description |
---|---|
org.iq80.leveldb.impl | |
org.iq80.leveldb.table | |
org.iq80.leveldb.util |
Modifier and Type | Method and Description |
---|---|
Slice |
InternalKey.encode() |
Slice |
VersionEdit.encode() |
Slice |
InternalUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
InternalUserComparator.findShortSuccessor(Slice key) |
Slice |
SeekingIteratorAdapter.DbEntry.getKeySlice() |
Slice |
InternalKey.getUserKey() |
Slice |
LookupKey.getUserKey() |
Slice |
LookupResult.getValue() |
Slice |
InternalEntry.getValue() |
Slice |
SeekingIteratorAdapter.DbEntry.getValueSlice() |
Slice |
LogReader.readRecord() |
Slice |
InternalEntry.setValue(Slice value) |
Modifier and Type | Method and Description |
---|---|
protected Map.Entry<Slice,Slice> |
SnapshotSeekingIterator.getNextElement() |
protected Map.Entry<Slice,Slice> |
SnapshotSeekingIterator.getNextElement() |
Modifier and Type | Method and Description |
---|---|
void |
MemTable.add(long sequenceNumber,
ValueType valueType,
Slice key,
Slice value) |
void |
LogWriter.addRecord(Slice record,
boolean force) |
void |
FileChannelLogWriter.addRecord(Slice record,
boolean force) |
void |
MMapLogWriter.addRecord(Slice record,
boolean force) |
void |
DbImpl.compactRange(int level,
Slice start,
Slice end) |
int |
InternalUserComparator.compare(Slice left,
Slice right) |
WriteBatchImpl |
WriteBatchImpl.delete(Slice key) |
void |
WriteBatchImpl.Handler.delete(Slice key) |
Slice |
InternalUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
InternalUserComparator.findShortSuccessor(Slice key) |
long |
TableCache.getApproximateOffsetOf(FileMetaData file,
Slice key) |
static int |
Logs.getChunkChecksum(int chunkTypeId,
Slice slice) |
boolean |
Compaction.isBaseLevelForKey(Slice userKey) |
static LookupResult |
LookupResult.ok(LookupKey key,
Slice value) |
boolean |
Version.overlapInLevel(int level,
Slice smallestUserKey,
Slice largestUserKey) |
boolean |
VersionSet.overlapInLevel(int level,
Slice smallestUserKey,
Slice largestUserKey) |
WriteBatchImpl |
WriteBatchImpl.put(Slice key,
Slice value) |
void |
WriteBatchImpl.Handler.put(Slice key,
Slice value) |
protected void |
SnapshotSeekingIterator.seekInternal(Slice targetKey) |
Slice |
InternalEntry.setValue(Slice value) |
boolean |
Level.someFileOverlapsRange(Slice smallestUserKey,
Slice largestUserKey) |
boolean |
Level0.someFileOverlapsRange(Slice smallestUserKey,
Slice largestUserKey) |
Constructor and Description |
---|
DbEntry(Slice key,
Slice value) |
InternalEntry(InternalKey key,
Slice value) |
InternalKey(Slice data) |
InternalKey(Slice userKey,
long sequenceNumber,
ValueType valueType) |
LookupKey(Slice userKey,
long sequenceNumber) |
VersionEdit(Slice slice) |
Constructor and Description |
---|
SnapshotSeekingIterator(DbIterator iterator,
SnapshotImpl snapshot,
Comparator<Slice> userComparator) |
Modifier and Type | Field and Description |
---|---|
protected Comparator<Slice> |
Table.comparator |
Modifier and Type | Method and Description |
---|---|
Slice |
UserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
CustomUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
BytewiseComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
UserComparator.findShortSuccessor(Slice key) |
Slice |
CustomUserComparator.findShortSuccessor(Slice key) |
Slice |
BytewiseComparator.findShortSuccessor(Slice key) |
Slice |
BlockBuilder.finish() |
Slice |
BlockEntry.getKey() |
Slice |
BlockEntry.getValue() |
Slice |
BlockEntry.setValue(Slice value) |
static Slice |
BlockHandle.writeBlockHandle(BlockHandle blockHandle) |
static Slice |
BlockTrailer.writeBlockTrailer(BlockTrailer blockTrailer) |
static Slice |
Footer.writeFooter(Footer footer) |
Modifier and Type | Method and Description |
---|---|
void |
BlockBuilder.add(Slice key,
Slice value) |
void |
TableBuilder.add(Slice key,
Slice value) |
static int |
BlockBuilder.calculateSharedBytes(Slice leftKey,
Slice rightKey) |
int |
CustomUserComparator.compare(Slice o1,
Slice o2) |
int |
BytewiseComparator.compare(Slice sliceA,
Slice sliceB) |
static int |
TableBuilder.crc32c(Slice data,
CompressionType type) |
Slice |
UserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
CustomUserComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
BytewiseComparator.findShortestSeparator(Slice start,
Slice limit) |
Slice |
UserComparator.findShortSuccessor(Slice key) |
Slice |
CustomUserComparator.findShortSuccessor(Slice key) |
Slice |
BytewiseComparator.findShortSuccessor(Slice key) |
long |
Table.getApproximateOffsetOf(Slice key)
Given a key, return an approximate byte offset in the file where
the data for that key begins (or would begin if the key were
present in the file).
|
Block |
Table.openBlock(Slice blockEntry) |
static BlockTrailer |
BlockTrailer.readBlockTrailer(Slice slice) |
static Footer |
Footer.readFooter(Slice slice) |
void |
BlockIterator.seek(Slice targetKey)
Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.
|
Slice |
BlockEntry.setValue(Slice value) |
Constructor and Description |
---|
Block(Slice block,
Comparator<Slice> comparator) |
BlockEntry(Slice key,
Slice value) |
BlockIterator(Slice data,
Slice restartPositions,
Comparator<Slice> comparator) |
Constructor and Description |
---|
Block(Slice block,
Comparator<Slice> comparator) |
BlockBuilder(int estimatedSize,
int blockRestartInterval,
Comparator<Slice> comparator) |
BlockIterator(Slice data,
Slice restartPositions,
Comparator<Slice> comparator) |
FileChannelTable(String name,
FileChannel fileChannel,
Comparator<Slice> comparator,
boolean verifyChecksums) |
MMapTable(String name,
FileChannel fileChannel,
Comparator<Slice> comparator,
boolean verifyChecksums) |
Table(String name,
FileChannel fileChannel,
Comparator<Slice> comparator,
boolean verifyChecksums) |
Modifier and Type | Field and Description |
---|---|
static Slice |
Slices.EMPTY_SLICE
A buffer whose capacity is
0 . |
Modifier and Type | Method and Description |
---|---|
static Slice |
Slices.allocate(int capacity) |
static Slice |
Slices.copiedBuffer(ByteBuffer source) |
static Slice |
Slices.copiedBuffer(ByteBuffer source,
int sourceOffset,
int length) |
static Slice |
Slices.copiedBuffer(String string,
Charset charset) |
Slice |
Slice.copySlice() |
Slice |
Slice.copySlice(int index,
int length)
Returns a copy of this buffer's sub-region.
|
static Slice |
Slices.ensureSize(Slice existingSlice,
int minWritableBytes) |
Slice |
SliceInput.readBytes(int length)
Transfers this buffer's data to a newly created buffer starting at
the current
position and increases the position
by the number of the transferred bytes (= length ). |
static Slice |
Slices.readLengthPrefixedBytes(SliceInput sliceInput) |
Slice |
SliceInput.readSlice(int length)
Returns a new slice of this buffer's sub-region starting at the current
position and increases the position by the size
of the new slice (= length ). |
Slice |
SliceInput.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
Slice.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
DynamicSliceOutput.slice() |
abstract Slice |
SliceOutput.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
BasicSliceOutput.slice() |
Slice |
Slice.slice(int index,
int length)
Returns a slice of this buffer's sub-region.
|
static Slice |
Slices.wrappedBuffer(byte[] array) |
Modifier and Type | Method and Description |
---|---|
protected Map.Entry<InternalKey,Slice> |
MergingIterator.getNextElement() |
protected Map.Entry<InternalKey,Slice> |
InternalTableIterator.getNextElement() |
protected Map.Entry<InternalKey,Slice> |
Level0Iterator.getNextElement() |
protected Map.Entry<Slice,Slice> |
TableIterator.getNextElement() |
protected Map.Entry<Slice,Slice> |
TableIterator.getNextElement() |
protected Map.Entry<InternalKey,Slice> |
DbIterator.getNextElement() |
protected Map.Entry<InternalKey,Slice> |
LevelIterator.getNextElement() |
Modifier and Type | Method and Description |
---|---|
int |
SliceComparator.compare(Slice sliceA,
Slice sliceB) |
int |
Slice.compareTo(Slice that)
Compares the content of the specified buffer to the content of this
buffer.
|
static Slice |
Slices.ensureSize(Slice existingSlice,
int minWritableBytes) |
void |
Slice.getBytes(int index,
Slice dst,
int dstIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the specified absolute
index . |
void |
SliceInput.readBytes(Slice destination)
Transfers this buffer's data to the specified destination starting at
the current
position until the destination becomes
non-writable, and increases the position by the number of the
transferred bytes. |
void |
SliceInput.readBytes(Slice destination,
int length)
Transfers this buffer's data to the specified destination starting at
the current
position and increases the position
by the number of the transferred bytes (= length ). |
void |
SliceInput.readBytes(Slice destination,
int destinationIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the current
position and increases the position
by the number of the transferred bytes (= length ). |
protected void |
TableIterator.seekInternal(Slice targetKey) |
void |
Slice.setBytes(int index,
Slice src,
int srcIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the specified absolute
index . |
void |
DynamicSliceOutput.writeBytes(Slice source) |
abstract void |
SliceOutput.writeBytes(Slice source)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex until the source buffer becomes
unreadable, and increases the writerIndex by the number of
the transferred bytes. |
void |
BasicSliceOutput.writeBytes(Slice source) |
void |
DynamicSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
abstract void |
SliceOutput.writeBytes(Slice source,
int sourceIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length ). |
void |
BasicSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
static void |
Slices.writeLengthPrefixedBytes(SliceOutput sliceOutput,
Slice value) |
Constructor and Description |
---|
BasicSliceOutput(Slice slice) |
SliceInput(Slice slice) |
Copyright © 2011–2019. All rights reserved.