-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package test; | ||
|
||
import mil.nga.giat.geowave.core.store.data.field.FieldReader; | ||
import mil.nga.giat.geowave.core.store.data.field.FieldSerializationProviderSpi; | ||
import mil.nga.giat.geowave.core.store.data.field.FieldWriter; | ||
import scala.Double; | ||
|
||
public class ScalaDoubleSerializationProvider implements FieldSerializationProviderSpi<scala.Double> | ||
{ | ||
|
||
@Override public FieldReader<Double> getFieldReader() { | ||
return null; | ||
} | ||
|
||
@Override public FieldWriter<Object, Double> getFieldWriter() { | ||
return null; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ETA-INF/services/mil.nga.giat.geowave.core.store.data.field.FieldSerializationProviderSpi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test.ScalaDoubleSerializationProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.example.ingest.vector | ||
|
||
import java.lang | ||
|
||
import mil.nga.giat.geowave.core.index.ByteArrayId | ||
import mil.nga.giat.geowave.core.store.data.field.base.DoubleSerializationProvider | ||
import mil.nga.giat.geowave.core.store.data.field.{FieldWriter, FieldReader, FieldSerializationProviderSpi} | ||
|
||
class ScalaDoubleSerializationProvider extends FieldSerializationProviderSpi[Double]{ | ||
val delegate = new DoubleSerializationProvider | ||
|
||
// override def getFieldReader: FieldReader[lang.Double] = delegate.getFieldReader | ||
|
||
// override def getFieldWriter: FieldWriter[AnyRef, lang.Double] = delegate.getFieldWriter | ||
override def getFieldWriter: FieldWriter[AnyRef, Double] = ??? | ||
|
||
|
||
override def getFieldReader: FieldReader[Double] = ??? | ||
} |