Skip to content

Commit

Permalink
Fixes a spelling error and adds NAME field to all of the new Extractors
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaPeukert committed Mar 21, 2018
1 parent 5bef798 commit f36d9f9
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions community/csv/src/main/java/org/neo4j/csv/reader/Extractors.java
Expand Up @@ -907,7 +907,7 @@ private static class IntArrayExtractor extends ArrayExtractor<int[]>
}

@Override
protected void extract0( char[] data, int offset, int length, CSVHeaderInformation optionalDatah )
protected void extract0( char[] data, int offset, int length, CSVHeaderInformation optionalData )
{
int numberOfValues = numberOfValues( data, offset, length );
value = numberOfValues > 0 ? new int[numberOfValues] : EMPTY;
Expand Down Expand Up @@ -1041,7 +1041,7 @@ public static class DateExtractor extends AbstractSingleAnyValueExtractor
{
DateExtractor()
{
super( "Date" );
super( NAME );
}

@Override
Expand All @@ -1056,6 +1056,8 @@ public AnyValue value()
{
return value;
}

public static final String NAME = "Date";
}

public static class TimeExtractor extends AbstractSingleAnyValueExtractor
Expand Down Expand Up @@ -1114,7 +1116,7 @@ public static class LocalTimeExtractor extends AbstractSingleAnyValueExtractor
{
LocalTimeExtractor()
{
super( "LocalTime" );
super( NAME );
}

@Override
Expand All @@ -1129,13 +1131,15 @@ public AnyValue value()
{
return value;
}

public static final String NAME = "LocalTime";
}

public static class LocalDateTimeExtractor extends AbstractSingleAnyValueExtractor
{
LocalDateTimeExtractor()
{
super( "LocalDateTime" );
super( NAME );
}

@Override
Expand All @@ -1150,13 +1154,15 @@ public AnyValue value()
{
return value;
}

public static final String NAME = "LocalDateTime";
}

public static class DurationExtractor extends AbstractSingleAnyValueExtractor
{
DurationExtractor()
{
super( "Duration" );
super( NAME );
}

@Override
Expand All @@ -1171,6 +1177,8 @@ public AnyValue value()
{
return value;
}

public static final String NAME = "Duration";
}

private static final Supplier<ZoneId> inUTC = () -> UTC;
Expand Down

0 comments on commit f36d9f9

Please sign in to comment.