asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "abdullah alamoudi (Code Review)" <>
Subject Change in asterixdb[master]: Add compatibility for Socket adapter
Date Wed, 10 Feb 2016 14:06:13 GMT
abdullah alamoudi has posted comments on this change.

Change subject: Add compatibility for Socket adapter

Patch Set 1:

File asterix-external-data/src/main/java/org/apache/asterix/external/util/

Line 58:                 throw new AsterixException("Unspecified format parameter for HDFS
> Is it easy to implement a switch-case-default statement other than if-else 
I plan on removing this class completely at some point but I am keeping it for now just for

At some point, this should be deprecated and then removed.

Line 84:                 throw new AsterixException("Unspecified format parameter for local
file system adapter");
> Socket adapter?

Line 87:             configuration.put(ExternalDataConstants.KEY_READER_STREAM, ExternalDataConstants.STREAM_SOCKET);
> I'm not familiar with Feed configurations, could you explain a bit about wh
So previously, we had a bunch of adapters and each of them had a set of configurations embedded
within them. 
so the socket adapter will use the appropriate parser.

Now, we have a single adapter and a set of re-usable components. Also, in order to provide
better logging and extensibility, our parsers support parsing streams or record objects. the
adm parser and the delimited data parsers can parse both streams and records.

also, if we have an adm reader, or a line reader, we need to specify the streams for them
to use. the stream can come from hdfs, localfs or in this case from a socket

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I8c8c78598c0cfea36c18503a73b002ece700be71
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <>
Gerrit-Reviewer: Jenkins <>
Gerrit-Reviewer: Jianfeng Jia <>
Gerrit-Reviewer: Till Westmann <>
Gerrit-Reviewer: abdullah alamoudi <>
Gerrit-HasComments: Yes

View raw message