- DEFAULT_DATA_PAGE_SIZE - Static variable in class org.kairosdb.bigqueue.BigArrayImpl
-
- DEFAULT_TTL - Static variable in class org.kairosdb.bigqueue.cache.LRUCacheImpl
-
- deleteAllPages() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
delete all mapped pages currently available in this factory,
this call will remove all pages from the cache and delete all back files.
- deleteAllPages() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
thread unsafe, caller need synchronization
- deleteDirectory(File) - Static method in class org.kairosdb.bigqueue.utils.FileUtil
-
- deleteFile(File) - Static method in class org.kairosdb.bigqueue.utils.FileUtil
-
- deletePage(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
delete a mapped page with specific index in this factory,
this call will remove the page from the cache if it is cached and
delete back file.
- deletePage(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
thread unsafe, caller need synchronization
- deletePages(Set<Long>) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
delete mapped pages with a set of specific indexes in this factory,
this call will remove the pages from the cache if they ware cached and
delete back files.
- deletePages(Set<Long>) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
thread unsafe, caller need synchronization
- deletePagesBefore(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Delete all pages with last modified timestamp before the specific timestamp.
- deletePagesBefore(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
thread unsafe, caller need synchronization
- deletePagesBeforePageIndex(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Delete all pages before the specific index
- deletePagesBeforePageIndex(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- dequeue() - Method in class org.kairosdb.bigqueue.BigQueueImpl
-
- dequeue(String) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- dequeue(String, boolean) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- dequeue() - Method in interface org.kairosdb.bigqueue.IBigQueue
-
Retrieves and removes the front of a queue
- dequeue(String) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Retrieves and removes the front of a fan out queue
- dequeue(String, boolean) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Retrieves and removes the front of a fan out queue
- dequeueAsync() - Method in class org.kairosdb.bigqueue.BigQueueImpl
-
- dequeueAsync() - Method in interface org.kairosdb.bigqueue.IBigQueue
-
Retrieves a Future which will complete if new Items where enqued.
- div(long, int) - Static method in class org.kairosdb.bigqueue.utils.Calculator
-
divide by shift
- FanOutQueueImpl - Class in org.kairosdb.bigqueue
-
A big, fast and persistent queue implementation supporting fan out semantics.
- FanOutQueueImpl(String, String, int) - Constructor for class org.kairosdb.bigqueue.FanOutQueueImpl
-
A big, fast and persistent queue implementation with fandout support.
- FanOutQueueImpl(String, String) - Constructor for class org.kairosdb.bigqueue.FanOutQueueImpl
-
- FileFactory - Interface in org.kairosdb.bigqueue.utils
-
- FileSystemFileFactory - Class in org.kairosdb.bigqueue.utils
-
- FileSystemFileFactory() - Constructor for class org.kairosdb.bigqueue.utils.FileSystemFileFactory
-
- FileUtil - Class in org.kairosdb.bigqueue.utils
-
- FileUtil() - Constructor for class org.kairosdb.bigqueue.utils.FileUtil
-
- findClosestIndex(long) - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- findClosestIndex(long) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- findClosestIndex(long) - Method in interface org.kairosdb.bigqueue.IBigArray
-
Find an index closest to the specific timestamp when the corresponding item was appended
- findClosestIndex(long) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Find an index closest to the specific timestamp when the corresponding item was enqueued.
- flush() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- flush() - Method in class org.kairosdb.bigqueue.BigQueueImpl
-
- flush() - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- flush() - Method in interface org.kairosdb.bigqueue.IBigArray
-
Force to persist newly appended data,
normally, you don't need to flush explicitly since:
1.) BigArray will automatically flush a cached page when it is replaced out,
2.) BigArray uses memory mapped file technology internally, and the OS will flush the changes even your process crashes,
call this periodically only if you need transactional reliability and you are aware of the cost to performance.
- flush() - Method in interface org.kairosdb.bigqueue.IBigQueue
-
Force to persist current state of the queue,
normally, you don't need to flush explicitly since:
1.) BigQueue will automatically flush a cached page when it is replaced out,
2.) BigQueue uses memory mapped file technology internally, and the OS will flush the changes even your process crashes,
call this periodically only if you need transactional reliability and you are aware of the cost to performance.
- flush() - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Force to persist current state of the queue,
normally, you don't need to flush explicitly since:
1.) FanOutQueue will automatically flush a cached page when it is replaced out,
2.) FanOutQueue uses memory mapped file technology internally, and the OS will flush the changes even your process crashes,
call this periodically only if you need transactional reliability and you are aware of the cost to performance.
- flush() - Method in interface org.kairosdb.bigqueue.page.IMappedPage
-
Persist any changes to disk
- flush() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Persist any changes in cached mapped pages
- flush() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
thread unsafe, caller need synchronization
- flush() - Method in class org.kairosdb.bigqueue.page.MappedPageImpl
-
- FolderNameValidator - Class in org.kairosdb.bigqueue.utils
-
- FolderNameValidator() - Constructor for class org.kairosdb.bigqueue.utils.FolderNameValidator
-
- forEach(byte[]) - Method in interface org.kairosdb.bigqueue.IBigQueue.ItemIterator
-
Method to be executed for each queue item
- gc() - Method in class org.kairosdb.bigqueue.BigQueueImpl
-
- gc() - Method in interface org.kairosdb.bigqueue.IBigQueue
-
Delete all used data files to free disk space.
- gcCount(String) - Method in interface org.kairosdb.bigqueue.metrics.BigQueueStats
-
- get(long) - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- get(K) - Method in interface org.kairosdb.bigqueue.cache.ILRUCache
-
Get a cached resource with specific key
This call will increment the reference counter of the keyed resource.
- get(K) - Method in class org.kairosdb.bigqueue.cache.LRUCacheImpl
-
- get(long) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- get(long) - Method in interface org.kairosdb.bigqueue.IBigArray
-
Get the data at specific index
- get(long) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Retrieves data item at the specific index of the queue
- getArrayDirectory() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getBackFileSize() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getBackFileSize() - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getBackFileSize() - Method in interface org.kairosdb.bigqueue.IBigArray
-
Get total size of back files(index and data files) of the big array
- getBackFileSize() - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Current total size of the back files of this queue
- getBackPageFileSet() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
A set of back page file names
- getBackPageFileSet() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getBackPageFileSize() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Total size of all page files
- getBackPageFileSize() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getCacheSize() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
For test, get current cache size
- getCacheSize() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getData(String) - Method in interface org.kairosdb.bigqueue.metrics.BigArrayStats
-
- getDataPageSize() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getDataPageSize() - Method in interface org.kairosdb.bigqueue.IBigArray
-
Get the back data file size per page.
- getExistingBackFileIndexSet() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
For test, get a list of indexes of current existing back files.
- getExistingBackFileIndexSet() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getFirstPageIndexBefore(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Get index of a page file with last modified timestamp closest to specific timestamp.
- getFirstPageIndexBefore(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getFrontIndex() - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getFrontIndex(String) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getFrontIndex(String, boolean) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getFrontIndex() - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Get the queue front index, this is the earliest appended index
- getFrontIndex(String) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Get front index of specific fanout queue
- getFrontIndex(String, boolean) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Get front index of specific fanout queue
- getHeadIndex() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getHeadIndex() - Method in interface org.kairosdb.bigqueue.IBigArray
-
The head of the array.
- getItemLength(long) - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getItemLength(long) - Method in interface org.kairosdb.bigqueue.IBigArray
-
Get the data item length at specific index
- getLength(long) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getLength(long) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Get length of data item at specific index of the queue
- getLocal(int) - Method in interface org.kairosdb.bigqueue.page.IMappedPage
-
Get a thread local copy of the mapped page buffer
- getLocal(int, int) - Method in interface org.kairosdb.bigqueue.page.IMappedPage
-
Get data from a thread local copy of the mapped page buffer
- getLocal(int, int) - Method in class org.kairosdb.bigqueue.page.MappedPageImpl
-
- getLocal(int) - Method in class org.kairosdb.bigqueue.page.MappedPageImpl
-
- getPageDir() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Current set page directory.
- getPageDir() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getPageFile() - Method in interface org.kairosdb.bigqueue.page.IMappedPage
-
The back page file name of the mapped page
- getPageFile() - Method in class org.kairosdb.bigqueue.page.MappedPageImpl
-
- getPageFileLastModifiedTime(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Get last modified timestamp of page file index
- getPageFileLastModifiedTime(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getPageIndex() - Method in interface org.kairosdb.bigqueue.page.IMappedPage
-
The index of the mapped page
- getPageIndex() - Method in class org.kairosdb.bigqueue.page.MappedPageImpl
-
- getPageIndexSetBefore(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Get all indexes of pages with last modified timestamp before the specific timestamp.
- getPageIndexSetBefore(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getPageSize() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Current set page size, when creating pages, the factory will
only create pages with this size.
- getPageSize() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- getRearIndex() - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getRearIndex() - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Get the queue rear index, this is the next to be appended index
- getTailIndex() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getTailIndex() - Method in interface org.kairosdb.bigqueue.IBigArray
-
The tail of the array.
- getTime() - Method in interface org.kairosdb.bigqueue.utils.Clock
-
- getTime() - Method in class org.kairosdb.bigqueue.utils.SystemClockImpl
-
- getTimestamp(long) - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- getTimestamp(long) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- getTimestamp(long) - Method in interface org.kairosdb.bigqueue.IBigArray
-
Get the timestamp of data at specific index,
this is the timestamp when the data was appended.
- getTimestamp(long) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Get timestamp of data item at specific index of the queue, this is the timestamp when corresponding item was appended into the queue.
- getValues() - Method in interface org.kairosdb.bigqueue.cache.ILRUCache
-
All values cached
- getValues() - Method in class org.kairosdb.bigqueue.cache.LRUCacheImpl
-
- release(K) - Method in interface org.kairosdb.bigqueue.cache.ILRUCache
-
Release the cached resource with specific key
This call will decrement the reference counter of the keyed resource.
- release(K) - Method in class org.kairosdb.bigqueue.cache.LRUCacheImpl
-
- releaseCachedPages() - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
remove all cached pages from the cache and close resources associated with the cached pages.
- releaseCachedPages() - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
thread unsafe, caller need synchronization
- releasePage(long) - Method in interface org.kairosdb.bigqueue.page.IMappedPageFactory
-
Return the mapped page to the factory,
calling thread release the page to inform the factory that it has finished with the page,
so the factory get a chance to recycle the page to save memory.
- releasePage(long) - Method in class org.kairosdb.bigqueue.page.MappedPageFactoryImpl
-
- remove(K) - Method in interface org.kairosdb.bigqueue.cache.ILRUCache
-
Remove the resource with specific key from the cache and close it synchronously afterwards.
- remove(K) - Method in class org.kairosdb.bigqueue.cache.LRUCacheImpl
-
- removeAll() - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- removeAll() - Method in class org.kairosdb.bigqueue.BigQueueImpl
-
- removeAll() - Method in interface org.kairosdb.bigqueue.cache.ILRUCache
-
Remove all cached resource from the cache and close them asynchronously afterwards.
- removeAll() - Method in class org.kairosdb.bigqueue.cache.LRUCacheImpl
-
- removeAll() - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- removeAll() - Method in interface org.kairosdb.bigqueue.IBigArray
-
Remove all data in this array, this will empty the array and delete all back page files.
- removeAll() - Method in interface org.kairosdb.bigqueue.IBigQueue
-
Removes all items of a queue, this will empty the queue and delete all back data files.
- removeAll() - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Removes all items of a queue, this will empty the queue and delete all back data files.
- removeBefore(long) - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- removeBefore(long) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- removeBefore(long) - Method in interface org.kairosdb.bigqueue.IBigArray
-
Remove all data before specific timestamp, this will advance the array tail and delete back page files
accordingly.
- removeBefore(long) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Remove all data before specific timestamp, truncate back files and advance the queue front if necessary.
- removeBeforeIndex(long) - Method in class org.kairosdb.bigqueue.BigArrayImpl
-
- removeBeforeIndex(long) - Method in interface org.kairosdb.bigqueue.IBigArray
-
Remove all data before specific index, this will advance the array tail to index and
delete back page files before index.
- resetQueueFrontIndex(String, long) - Method in class org.kairosdb.bigqueue.FanOutQueueImpl
-
- resetQueueFrontIndex(String, long) - Method in interface org.kairosdb.bigqueue.IFanOutQueue
-
Reset the front index of a fanout queue.