public class SharedTableReader<K,V>
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
SharedTableReader(TableReader<K,V> reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsKey(K key) |
V |
get(K key) |
TableConfig<K,V> |
getConfig() |
com.indeed.util.core.reference.SharedReference<TableReader<K,V>> |
getCopy() |
long |
getSizeInBytes() |
TableReader.TableStats |
getStats() |
long |
getTimestamp() |
static <K,V> SharedTableReader<K,V> |
open(java.io.File metaPath) |
static <K,V> SharedTableReader<K,V> |
open(java.io.File metaPath,
java.io.File offsetsPath,
java.io.File dataPath) |
static <K,V> SharedTableReader<K,V> |
open(java.lang.String metaPath) |
long |
size() |
public SharedTableReader(@Nonnull
TableReader<K,V> reader)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic static <K,V> SharedTableReader<K,V> open(@Nonnull java.io.File metaPath, @Nullable java.io.File offsetsPath, @Nullable java.io.File dataPath) throws java.io.IOException
java.io.IOExceptionpublic static <K,V> SharedTableReader<K,V> open(@Nonnull java.io.File metaPath) throws java.io.IOException
java.io.IOExceptionpublic static <K,V> SharedTableReader<K,V> open(@Nonnull java.lang.String metaPath) throws java.io.IOException
java.io.IOExceptionpublic com.indeed.util.core.reference.SharedReference<TableReader<K,V>> getCopy()
public TableConfig<K,V> getConfig() throws java.io.IOException
java.io.IOExceptionpublic TableReader.TableStats getStats() throws java.io.IOException
java.io.IOExceptionpublic boolean containsKey(@Nonnull
K key)
public long size()
public long getSizeInBytes()
public long getTimestamp()
Copyright © 2018. All Rights Reserved.