public class HBaseReadWrite extends Object implements MetadataStore
Modifier and Type | Field and Description |
---|---|
static Map<String,List<byte[]>> |
columnFamilies |
static String[] |
tableNames
List of tables in HBase
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
void |
getFileMetadata(List<Long> fileIds,
ByteBuffer[] result) |
static void |
setConf(org.apache.hadoop.conf.Configuration configuration)
Set the configuration for all HBaseReadWrite instances.
|
void |
storeFileMetadata(List<Long> fileIds,
List<ByteBuffer> metadataBuffers,
ByteBuffer[] addedCols,
ByteBuffer[][] addedVals) |
void |
storeFileMetadata(long fileId,
ByteBuffer metadata,
ByteBuffer[] addedCols,
ByteBuffer[] addedVals) |
public static final String[] tableNames
public static void setConf(org.apache.hadoop.conf.Configuration configuration)
configuration
- Configuration objectpublic org.apache.hadoop.conf.Configuration getConf()
public void getFileMetadata(List<Long> fileIds, ByteBuffer[] result) throws IOException
getFileMetadata
in interface MetadataStore
fileIds
- file ID list.result
- The ref parameter, used to return the serialized file metadata.IOException
public void storeFileMetadata(List<Long> fileIds, List<ByteBuffer> metadataBuffers, ByteBuffer[] addedCols, ByteBuffer[][] addedVals) throws IOException, InterruptedException
storeFileMetadata
in interface MetadataStore
fileIds
- file ID list.metadataBuffers
- Serialized file metadatas, one per file ID.addedCols
- The column names for additional columns created by file-format-specific
metadata handler, to be stored in the cache.addedVals
- The values for addedCols; one value per file ID per added column.IOException
InterruptedException
public void storeFileMetadata(long fileId, ByteBuffer metadata, ByteBuffer[] addedCols, ByteBuffer[] addedVals) throws IOException, InterruptedException
storeFileMetadata
in interface MetadataStore
fileId
- The file ID.addedCols
- The column names for additional columns created by file-format-specific
metadata handler, to be stored in the cache.addedVals
- The values for addedCols; one value per added column.IOException
InterruptedException
Copyright © 2021 The Apache Software Foundation. All rights reserved.