public static class AcidOutputFormat.Options extends Object
Constructor and Description |
---|
AcidOutputFormat.Options(org.apache.hadoop.conf.Configuration conf)
Create the options object.
|
Modifier and Type | Method and Description |
---|---|
AcidOutputFormat.Options |
bucket(int bucket)
The bucket that is included in this file.
|
AcidOutputFormat.Options |
filesystem(org.apache.hadoop.fs.FileSystem fs)
Provide a file system to the writer.
|
int |
getBucket() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
PrintStream |
getDummyStream() |
org.apache.hadoop.fs.FileSystem |
getFilesystem() |
ObjectInspector |
getInspector() |
long |
getMaximumTransactionId() |
long |
getMinimumTransactionId() |
int |
getRecordIdColumn() |
org.apache.hadoop.mapred.Reporter |
getReporter() |
Properties |
getTableProperties() |
AcidOutputFormat.Options |
inspector(ObjectInspector inspector)
Use the given ObjectInspector for each record written.
|
boolean |
isCompressed() |
AcidOutputFormat.Options |
isCompressed(boolean isCompressed)
Should the output be compressed?
|
boolean |
isWritingBase() |
AcidOutputFormat.Options |
maximumTransactionId(long max)
The maximum transaction id that is included in this file.
|
AcidOutputFormat.Options |
minimumTransactionId(long min)
The minimum transaction id that is included in this file.
|
AcidOutputFormat.Options |
recordIdColumn(int recIdCol)
Which column the row id field is in.
|
AcidOutputFormat.Options |
reporter(org.apache.hadoop.mapred.Reporter reporter)
Provide the MapReduce reporter.
|
AcidOutputFormat.Options |
tableProperties(Properties properties)
Provide the table properties for the table.
|
AcidOutputFormat.Options |
useDummy(PrintStream stream)
Temporary switch while we are in development that replaces the
implementation with a dummy one that just prints to stream.
|
AcidOutputFormat.Options |
writingBase(boolean val)
Is this writing a base directory? Should only be used by the compactor,
or when implementing insert overwrite.
|
public AcidOutputFormat.Options(org.apache.hadoop.conf.Configuration conf)
conf
- Use the given configurationpublic AcidOutputFormat.Options inspector(ObjectInspector inspector)
inspector
- the inspector to use.public AcidOutputFormat.Options writingBase(boolean val)
val
- is this a base file?public AcidOutputFormat.Options filesystem(org.apache.hadoop.fs.FileSystem fs)
fs
- the file system that corresponds to the the pathpublic AcidOutputFormat.Options isCompressed(boolean isCompressed)
isCompressed
- is the output compressed?public AcidOutputFormat.Options tableProperties(Properties properties)
properties
- the table's propertiespublic AcidOutputFormat.Options reporter(org.apache.hadoop.mapred.Reporter reporter)
reporter
- the reporter objectpublic AcidOutputFormat.Options minimumTransactionId(long min)
min
- minimum transaction idpublic AcidOutputFormat.Options maximumTransactionId(long max)
max
- maximum transaction idpublic AcidOutputFormat.Options bucket(int bucket)
bucket
- the bucket numberpublic AcidOutputFormat.Options recordIdColumn(int recIdCol)
recIdCol
- public AcidOutputFormat.Options useDummy(PrintStream stream)
stream
- the stream to print topublic org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.hadoop.fs.FileSystem getFilesystem()
public ObjectInspector getInspector()
public boolean isCompressed()
public Properties getTableProperties()
public org.apache.hadoop.mapred.Reporter getReporter()
public long getMinimumTransactionId()
public long getMaximumTransactionId()
public boolean isWritingBase()
public int getBucket()
public int getRecordIdColumn()
public PrintStream getDummyStream()
Copyright © 2017 The Apache Software Foundation. All rights reserved.