public class SelectTool extends S3GuardTool
hadoop s3guard select [options] Path Statement
S3GuardTool.BucketInfo| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
OPT_COMPRESSION |
static String |
OPT_EXPECTED |
static String |
OPT_HEADER |
static String |
OPT_INPUTFORMAT |
static String |
OPT_LIMIT |
static String |
OPT_OUTPUT |
static String |
OPT_OUTPUTFORMAT |
static String |
PURPOSE |
AGE_OPTIONS_USAGE, CMK_FLAG, DAYS_FLAG, HOURS_FLAG, META_FLAG, MINUTES_FLAG, READ_FLAG, REGION_FLAG, SECONDS_FLAG, SSE_FLAG, TAG_FLAG, VERBOSE, WRITE_FLAG, WRONG_FILESYSTEM| Constructor and Description |
|---|
SelectTool(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
static double |
bandwidthMBs(long bytes,
long durationMillisNS)
Work out the bandwidth in MB/s.
|
long |
getBytesRead() |
long |
getLinesRead()
Number of lines read, when printing to the console.
|
String |
getName()
Return sub-command name.
|
org.apache.hadoop.util.OperationDuration |
getSelectDuration() |
String |
getUsage() |
int |
run(String[] args,
PrintStream out)
Execute the select operation.
|
addAgeOptions, badState, bindFilesystem, checkBucketNameOrDDBTableNameProvided, checkIfS3BucketIsGuarded, close, dumpFileSystemStatistics, errorln, errorln, exit, exitException, getCommandFormat, getFilesystem, getStore, initMetadataStore, initS3AFileSystem, invalidArgs, main, parseArgs, parseDynamoDBRegion, println, printStoreDiagnostics, resetBindings, run, run, setStore, storeNotFound, toUri, userAbortedpublic static final String NAME
public static final String PURPOSE
public static final String OPT_COMPRESSION
public static final String OPT_EXPECTED
public static final String OPT_HEADER
public static final String OPT_INPUTFORMAT
public static final String OPT_LIMIT
public static final String OPT_OUTPUT
public static final String OPT_OUTPUTFORMAT
public String getName()
S3GuardToolgetName in class S3GuardToolpublic String getUsage()
getUsage in class S3GuardToolpublic org.apache.hadoop.util.OperationDuration getSelectDuration()
public long getBytesRead()
public long getLinesRead()
public int run(String[] args, PrintStream out) throws IOException, org.apache.hadoop.util.ExitUtil.ExitException
run in class S3GuardToolargs - argument listout - output streamIOException - IO failureExitUtil.ExitException - managed failurepublic static double bandwidthMBs(long bytes,
long durationMillisNS)
bytes - bytesdurationMillisNS - duration in nanosCopyright © 2008–2022 Apache Software Foundation. All rights reserved.