public class SGDStreamingCacheIterator extends StreamingCacheIterator<SGDObjectiveTerm>
closed, currentPage, nextCachedTermIndex, nextTerm, numPages, pageAccessOrder, parentStore, readonly, shuffleMap, shufflePage, termBuffer, termCache, termPool, volatileBuffer
Constructor and Description |
---|
SGDStreamingCacheIterator(SGDStreamingTermStore parentStore,
boolean readonly,
List<SGDObjectiveTerm> termCache,
List<SGDObjectiveTerm> termPool,
ByteBuffer termBuffer,
ByteBuffer volatileBuffer,
boolean shufflePage,
int[] shuffleMap,
boolean randomizePageAccess,
int numPages) |
Modifier and Type | Method and Description |
---|---|
protected void |
readPage(String termPagePath,
String volatilePagePath)
Read a page and fill the termCache using freed terms from the termPool.
|
protected void |
writeVolatilePage(String volatilePagePath)
Write a cache page to disk.
|
close, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SGDStreamingCacheIterator(SGDStreamingTermStore parentStore, boolean readonly, List<SGDObjectiveTerm> termCache, List<SGDObjectiveTerm> termPool, ByteBuffer termBuffer, ByteBuffer volatileBuffer, boolean shufflePage, int[] shuffleMap, boolean randomizePageAccess, int numPages)
protected void readPage(String termPagePath, String volatilePagePath)
StreamingCacheIterator
readPage
in class StreamingCacheIterator<SGDObjectiveTerm>
protected void writeVolatilePage(String volatilePagePath)
StreamingCacheIterator
writeVolatilePage
in class StreamingCacheIterator<SGDObjectiveTerm>
Copyright © 2020 University of California, Santa Cruz. All rights reserved.