Package io.trino.plugin.hive.rubix
Class DummyBookKeeper
- java.lang.Object
-
- io.trino.plugin.hive.rubix.DummyBookKeeper
-
- All Implemented Interfaces:
com.qubole.rubix.spi.thrift.BookKeeperService.Iface
public class DummyBookKeeper extends Object implements com.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
-
Constructor Summary
Constructors Constructor Description DummyBookKeeper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Double>getCacheMetrics()com.qubole.rubix.spi.thrift.CacheStatusResponsegetCacheStatus(com.qubole.rubix.spi.thrift.CacheStatusRequest cacheStatusRequest)com.qubole.rubix.spi.thrift.FileInfogetFileInfo(String remotePath)Map<String,Long>getReadRequestChainStats()voidhandleHeartbeat(String workerHostname, com.qubole.rubix.spi.thrift.HeartbeatStatus heartbeatStatus)voidinvalidateFileMetadata(String remotePath)booleanisBookKeeperAlive()com.qubole.rubix.spi.thrift.ReadResponsereadData(String remotePath, long offset, int length, long fileSize, long lastModified, int clusterType)voidsetAllCached(String remotePath, long fileLength, long lastModified, long startBlock, long endBlock, int generationNumber)
-
-
-
Method Detail
-
getCacheStatus
public com.qubole.rubix.spi.thrift.CacheStatusResponse getCacheStatus(com.qubole.rubix.spi.thrift.CacheStatusRequest cacheStatusRequest)
- Specified by:
getCacheStatusin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
setAllCached
public void setAllCached(String remotePath, long fileLength, long lastModified, long startBlock, long endBlock, int generationNumber)
- Specified by:
setAllCachedin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
getCacheMetrics
public Map<String,Double> getCacheMetrics()
- Specified by:
getCacheMetricsin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
getReadRequestChainStats
public Map<String,Long> getReadRequestChainStats() throws org.apache.thrift.shaded.TException
- Specified by:
getReadRequestChainStatsin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface- Throws:
org.apache.thrift.shaded.TException
-
readData
public com.qubole.rubix.spi.thrift.ReadResponse readData(String remotePath, long offset, int length, long fileSize, long lastModified, int clusterType)
- Specified by:
readDatain interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
handleHeartbeat
public void handleHeartbeat(String workerHostname, com.qubole.rubix.spi.thrift.HeartbeatStatus heartbeatStatus)
- Specified by:
handleHeartbeatin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
getFileInfo
public com.qubole.rubix.spi.thrift.FileInfo getFileInfo(String remotePath)
- Specified by:
getFileInfoin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
isBookKeeperAlive
public boolean isBookKeeperAlive()
- Specified by:
isBookKeeperAlivein interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
invalidateFileMetadata
public void invalidateFileMetadata(String remotePath)
- Specified by:
invalidateFileMetadatain interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
-