[File] Avro format read with java library 'apache.avro'
Import ‘org.apache.avro:avro:1.9.0’ (choose proper version) follow like this String path = getClass().getResource(path).getPath(); File file = New File(path); DatumReader datumReader = new GenericDatumReader(); DataFileReader dataFileReader = new DataFileReader(file, datumReader); record = dataFileReader.next(record); record.get(key).toString();
Architecture/Back-End
2020. 5. 9. 23:05
TAG
more
Recent Post