Skip to content

Commit

Permalink
Fix scala style.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jun 13, 2015
1 parent fb532b5 commit 281e844
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ private class DateUnsafeColumnWriter private() extends UnsafeColumnWriter {
0
}

override def write(source: InternalRow, target: UnsafeRow, column: Int, appendCursor: Int): Int = {
override def write(
source: InternalRow,
target: UnsafeRow,
column: Int,
appendCursor: Int): Int = {
target.setDate(column, source.getDate(column))
0
}
Expand All @@ -283,7 +287,11 @@ private class TimestampUnsafeColumnWriter private() extends UnsafeColumnWriter {
16
}

override def write(source: InternalRow, target: UnsafeRow, column: Int, appendCursor: Int): Int = {
override def write(
source: InternalRow,
target: UnsafeRow,
column: Int,
appendCursor: Int): Int = {
val value = DateUtils.toJavaTimestamp(source.get(column).asInstanceOf[Long])
val time = value.getTime()
val nanos = value.getNanos()
Expand Down

0 comments on commit 281e844

Please sign in to comment.