org.apache.flume.channel.recoverable.memory.wal
Class SequenceIDBuffer
java.lang.Object
org.apache.flume.channel.recoverable.memory.wal.SequenceIDBuffer
public class SequenceIDBuffer
- extends Object
Method Summary |
void |
close()
|
int |
compare(int leftIndex,
int rightIndex)
|
boolean |
exists(long value)
|
long |
get(int index)
|
static void |
main(String[] args)
|
void |
put(int index,
long value)
|
int |
size()
|
void |
sort()
|
void |
swap(int leftIndex,
int rightIndex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceIDBuffer
public SequenceIDBuffer(int size)
compare
public int compare(int leftIndex,
int rightIndex)
exists
public boolean exists(long value)
swap
public void swap(int leftIndex,
int rightIndex)
get
public long get(int index)
put
public void put(int index,
long value)
size
public int size()
close
public void close()
sort
public void sort()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.