forked from ajaxorg/ace-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
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
345 changed files
with
30,188 additions
and
14,456 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
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
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
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,73 @@ | ||
# Main Schema | ||
schema { | ||
query: Query; | ||
} | ||
|
||
scalar Date; | ||
|
||
# Simple type to contain all scalar types | ||
type AllTypes { | ||
# Field Description for String | ||
testString: String; | ||
# Field Description for Int | ||
testInt: Int; | ||
# Field Description for ID | ||
testID: ID; | ||
# Field Description for Boolean | ||
testBoolean: Boolean; | ||
# Field Description for Float | ||
testFloat: Float; | ||
} | ||
|
||
interface ISearchable { | ||
searchPreview: String!; | ||
} | ||
|
||
union ProductTypes = Movie | Book; | ||
|
||
# Testing enum | ||
enum MovieGenere { | ||
ACTION | ||
COMEDY | ||
THRILLER | ||
DRAMA | ||
} | ||
|
||
# Testing Input | ||
input SearchByGenere { | ||
before: Date; | ||
after: Date; | ||
genere: MovieGenere!; | ||
} | ||
|
||
# Testing Interface | ||
type Movie implements ISearchable { | ||
id: ID!; | ||
searchPreview: String!; | ||
rentPrice: Float; | ||
publishDate: Date; | ||
genere: MovieGenere; | ||
cast: [String]; | ||
} | ||
|
||
# Testing Interface | ||
type Book implements ISearchable { | ||
id: ID!; | ||
searchPreview: String!; | ||
price: Float; | ||
publishDate: Date; | ||
authors: [String]; | ||
} | ||
|
||
type Query { | ||
testString: String; | ||
testDate; Date; | ||
allTypes: AllTypes; | ||
allProducts: [ProductTypes]; | ||
|
||
# searches only movies by genere with sophisticated argument | ||
searchMovieByGenere(searchObject: SearchByGenere!): [Movie]; | ||
|
||
# Searchs all products by text string | ||
searchProduct(text: String!): [ISearchable]; | ||
} |
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
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,9 @@ | ||
A = load 'mobydick.txt'; | ||
B = foreach A generate flatten(TOKENIZE((chararray)$0)) as word; | ||
C = filter B by word matches '\\w+'; | ||
D = group C by word; | ||
E = foreach D generate COUNT(C) as count, group as word; | ||
F = order E by count desc; | ||
-- one comment | ||
/* another comment */ | ||
dump F; |
Oops, something went wrong.