Skip to content

Commit

Permalink
HIVE-8370 - Fix tabs in DefaultHBaseValueFactory (Brock reviewed by S…
Browse files Browse the repository at this point in the history
…zehon)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1629999 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Brock Noland committed Oct 8, 2014
1 parent 9e39b4c commit 61464ce
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* Default implementation of the {@link HBaseValueFactory}
* */
public class DefaultHBaseValueFactory implements HBaseValueFactory{
public class DefaultHBaseValueFactory implements HBaseValueFactory {

protected LazySimpleSerDe.SerDeParameters serdeParams;
protected ColumnMappings columnMappings;
Expand All @@ -49,32 +49,32 @@ public DefaultHBaseValueFactory(int fieldID) {
this.fieldID = fieldID;
}

@Override
@Override
public void init(HBaseSerDeParameters hbaseParams, Configuration conf, Properties properties)
throws SerDeException {
throws SerDeException {
this.hbaseParams = hbaseParams;
this.serdeParams = hbaseParams.getSerdeParams();
this.columnMappings = hbaseParams.getColumnMappings();
this.properties = properties;
this.conf = conf;
}
}

@Override
public ObjectInspector createValueObjectInspector(TypeInfo type)
throws SerDeException {
@Override
public ObjectInspector createValueObjectInspector(TypeInfo type)
throws SerDeException {
return LazyFactory.createLazyObjectInspector(type, serdeParams.getSeparators(),
1, serdeParams.getNullSequence(), serdeParams.isEscaped(), serdeParams.getEscapeChar());
}
}

@Override
public LazyObjectBase createValueObject(ObjectInspector inspector) throws SerDeException {
return HBaseSerDeHelper.createLazyField(columnMappings.getColumnsMapping(), fieldID, inspector);
}

@Override
public byte[] serializeValue(Object object, StructField field)
throws IOException {
@Override
public byte[] serializeValue(Object object, StructField field)
throws IOException {
// TODO Add support for serialization of values here
return null;
}
}
return null;
}
}

0 comments on commit 61464ce

Please sign in to comment.