public class IOContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IOContext.Comparison |
Constructor and Description |
---|
IOContext() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static IOContext |
get(org.apache.hadoop.conf.Configuration conf) |
IOContext.Comparison |
getComparison() |
long |
getCurrentBlockStart() |
long |
getCurrentRow() |
String |
getGenericUDFClassName() |
org.apache.hadoop.fs.Path |
getInputPath() |
boolean |
getIOExceptions() |
long |
getNextBlockStart() |
RecordIdentifier |
getRecordIdentifier() |
boolean |
isBinarySearching() |
boolean |
isBlockPointer() |
void |
resetSortingValues()
The thread local IOContext is static, we may need to restart the search if, for instance,
multiple files are being searched as part of a CombinedHiveRecordReader
|
void |
setBinarySearching(boolean isBinarySearching) |
void |
setBlockPointer(boolean isBlockPointer) |
void |
setComparison(Integer comparison) |
void |
setCurrentBlockStart(long currentBlockStart) |
void |
setCurrentRow(long currentRow) |
void |
setEndBinarySearch(boolean endBinarySearch) |
void |
setGenericUDFClassName(String genericUDFClassName) |
void |
setInputPath(org.apache.hadoop.fs.Path inputPath) |
void |
setIOExceptions(boolean ioe) |
void |
setNextBlockStart(long nextBlockStart) |
void |
setRecordIdentifier(RecordIdentifier ri) |
void |
setUseSorted(boolean useSorted) |
boolean |
shouldEndBinarySearch() |
boolean |
useSorted() |
public static IOContext get(org.apache.hadoop.conf.Configuration conf)
public static void clear()
public long getCurrentBlockStart()
public void setCurrentBlockStart(long currentBlockStart)
public long getNextBlockStart()
public void setNextBlockStart(long nextBlockStart)
public long getCurrentRow()
public void setCurrentRow(long currentRow)
public boolean isBlockPointer()
public void setBlockPointer(boolean isBlockPointer)
public org.apache.hadoop.fs.Path getInputPath()
public void setInputPath(org.apache.hadoop.fs.Path inputPath)
public void setIOExceptions(boolean ioe)
public boolean getIOExceptions()
public boolean useSorted()
public void setUseSorted(boolean useSorted)
public boolean isBinarySearching()
public void setBinarySearching(boolean isBinarySearching)
public boolean shouldEndBinarySearch()
public void setEndBinarySearch(boolean endBinarySearch)
public IOContext.Comparison getComparison()
public void setComparison(Integer comparison)
public String getGenericUDFClassName()
public void setGenericUDFClassName(String genericUDFClassName)
public RecordIdentifier getRecordIdentifier()
public void setRecordIdentifier(RecordIdentifier ri)
public void resetSortingValues()
Copyright © 2017 The Apache Software Foundation. All rights reserved.