Skip to content

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

Merged
merged 5 commits into from
Dec 17, 2015
Merged

New results api, take 2 #97

merged 5 commits into from
Dec 17, 2015

Conversation

boggle
Copy link
Contributor

@boggle boggle commented Dec 14, 2015

No description provided.

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
* @param <V> the Java type of the contained value
*/
@Immutable
public interface Property<V>
public interface Entry<V>
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@boggle
Copy link
Contributor Author

boggle commented Dec 14, 2015

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
{
Copy link
Contributor

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?

@pontusmelke
Copy link
Contributor

licenses...

boggle pushed a commit that referenced this pull request Dec 17, 2015
@boggle boggle merged commit 12a9e04 into neo4j:1.0 Dec 17, 2015
@boggle boggle deleted the new-results-api branch December 17, 2015 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants