public class BsonRecordReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RECORD_SIZE |
protected DrillBuf |
workBuf |
| Constructor and Description |
|---|
BsonRecordReader(DrillBuf managedBuf,
boolean allTextMode,
boolean readNumbersAsDouble) |
BsonRecordReader(DrillBuf managedBuf,
List<SchemaPath> columns,
boolean readNumbersAsDouble) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureAtLeastOneField(BaseWriter.ComplexWriter writer) |
UserException.Builder |
getExceptionWithContext(Throwable exception,
String field,
String msg,
Object... args) |
UserException.Builder |
getExceptionWithContext(UserException.Builder exceptionBuilder,
String field,
String msg,
Object... args) |
void |
write(BaseWriter.ComplexWriter writer,
org.bson.BsonReader reader) |
public static final int MAX_RECORD_SIZE
protected DrillBuf workBuf
public BsonRecordReader(DrillBuf managedBuf, boolean allTextMode, boolean readNumbersAsDouble)
public BsonRecordReader(DrillBuf managedBuf, List<SchemaPath> columns, boolean readNumbersAsDouble)
public void write(BaseWriter.ComplexWriter writer, org.bson.BsonReader reader) throws IOException
IOExceptionpublic void ensureAtLeastOneField(BaseWriter.ComplexWriter writer)
public UserException.Builder getExceptionWithContext(UserException.Builder exceptionBuilder, String field, String msg, Object... args)
public UserException.Builder getExceptionWithContext(Throwable exception, String field, String msg, Object... args)
Copyright © 2017 The Apache Software Foundation. All rights reserved.