-
Notifications
You must be signed in to change notification settings - Fork 155
New results api, take 2 #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
o Replace Field, Property by Entry o Fuse MapAccessor and PropertyMapAccessor into MapAccessor o Made RecordAccessor a separate interface o Remove some unneeded methods o Replace propertyCount, fieldCount with size
o Also ensure inner iterator is set to null as soon as possible to free resources early
o This is the dual of skip - and was IMHO missing
7cd30ec
to
5bf0e5e
Compare
* @param <V> the Java type of the contained value | ||
*/ | ||
@Immutable | ||
public interface Property<V> | ||
public interface Entry<V> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the name clash with java.util.Map.Entry
make it cumbersome to use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe.. I usually don't import it and just use Map.Entry directly in my Java code; that was the thinking here but I realize now that is not a good thing to assume by default. What would be a good generic alternative? We could just have a type Pair<K, V>
? Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wikipedia agrees with that idea: https://en.wikipedia.org/wiki/Associative_array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost always import Entry
but I am not sure if I am representative either. Pair
, is fine by me.
Something is weird with the PR build, it looks like there is a hanging db server. Let's see if this clears up tomorrow. |
import org.junit.Test; | ||
|
||
public class TypePlayTest | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? What's the purpose of this test?
licenses... |
25300e8
to
269f4d8
Compare
269f4d8
to
a51f810
Compare
No description provided.