Skip to content

Commit

Permalink
Add OrcHiveRecordCursor
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Sep 26, 2014
1 parent b937122 commit fc12dcf
Show file tree
Hide file tree
Showing 8 changed files with 698 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void configure(Binder binder)
binder.bind(TypeManager.class).toInstance(typeManager);

Multibinder<HiveRecordCursorProvider> recordCursorProviderBinder = Multibinder.newSetBinder(binder, HiveRecordCursorProvider.class);
recordCursorProviderBinder.addBinding().to(OrcRecordCursorProvider.class).in(Scopes.SINGLETON);
recordCursorProviderBinder.addBinding().to(ColumnarTextHiveRecordCursorProvider.class).in(Scopes.SINGLETON);
recordCursorProviderBinder.addBinding().to(ColumnarBinaryHiveRecordCursorProvider.class).in(Scopes.SINGLETON);
recordCursorProviderBinder.addBinding().to(GenericHiveRecordCursorProvider.class).in(Scopes.SINGLETON);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private HiveRecordCursorProviders() {}
public static List<HiveRecordCursorProvider> getDefaultProviders()
{
return ImmutableList.of(
new OrcRecordCursorProvider(),
new ColumnarTextHiveRecordCursorProvider(),
new ColumnarBinaryHiveRecordCursorProvider(),
new GenericHiveRecordCursorProvider());
Expand Down
Loading

0 comments on commit fc12dcf

Please sign in to comment.