public static class ORC.ReadBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<D> CloseableIterable<D> |
build() |
ORC.ReadBuilder |
caseSensitive(boolean newCaseSensitive) |
ORC.ReadBuilder |
config(java.lang.String property,
java.lang.String value) |
ORC.ReadBuilder |
createBatchedReaderFunc(java.util.function.Function<org.apache.orc.TypeDescription,OrcBatchReader<?>> batchReaderFunction) |
ORC.ReadBuilder |
createReaderFunc(java.util.function.Function<org.apache.orc.TypeDescription,OrcRowReader<?>> readerFunction) |
ORC.ReadBuilder |
filter(Expression newFilter) |
ORC.ReadBuilder |
project(Schema newSchema) |
ORC.ReadBuilder |
recordsPerBatch(int numRecordsPerBatch) |
ORC.ReadBuilder |
split(long newStart,
long newLength)
Restricts the read to the given range: [start, start + length).
|
ORC.ReadBuilder |
withNameMapping(NameMapping newNameMapping) |
public ORC.ReadBuilder split(long newStart, long newLength)
newStart
- the start position for this readnewLength
- the length of the range this read should scanpublic ORC.ReadBuilder project(Schema newSchema)
public ORC.ReadBuilder caseSensitive(boolean newCaseSensitive)
public ORC.ReadBuilder config(java.lang.String property, java.lang.String value)
public ORC.ReadBuilder createReaderFunc(java.util.function.Function<org.apache.orc.TypeDescription,OrcRowReader<?>> readerFunction)
public ORC.ReadBuilder filter(Expression newFilter)
public ORC.ReadBuilder createBatchedReaderFunc(java.util.function.Function<org.apache.orc.TypeDescription,OrcBatchReader<?>> batchReaderFunction)
public ORC.ReadBuilder recordsPerBatch(int numRecordsPerBatch)
public ORC.ReadBuilder withNameMapping(NameMapping newNameMapping)
public <D> CloseableIterable<D> build()