use of org.apache.parquet.thrift.ParquetProtocol in project parquet-mr by apache.
the class DefaultEventsVisitor method visit.
@Override
public Void visit(ThriftType.MapType mapType, Void v) {
dummyEvents.add(new ParquetProtocol("readMapBegin()") {
@Override
public TMap readMapBegin() throws TException {
return new TMap();
}
});
dummyEvents.add(new ParquetProtocol("readMapEnd()") {
@Override
public void readMapEnd() throws TException {
}
});
return null;
}
use of org.apache.parquet.thrift.ParquetProtocol in project parquet-mr by apache.
the class DefaultEventsVisitor method visit.
@Override
public Void visit(final ThriftType.SetType setType, Void v) {
dummyEvents.add(new ParquetProtocol("readSetBegin()") {
@Override
public TSet readSetBegin() throws TException {
return new TSet();
}
});
dummyEvents.add(new ParquetProtocol("readSetEnd()") {
@Override
public void readSetEnd() throws TException {
}
});
return null;
}
use of org.apache.parquet.thrift.ParquetProtocol in project parquet-mr by apache.
the class DefaultEventsVisitor method visit.
@Override
public Void visit(final ThriftType.ListType listType, Void v) {
dummyEvents.add(new ParquetProtocol("readListBegin()") {
@Override
public TList readListBegin() throws TException {
return new TList();
}
});
dummyEvents.add(new ParquetProtocol("readListEnd()") {
@Override
public void readListEnd() throws TException {
}
});
return null;
}
Aggregations