Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
de47ef02
Commit
de47ef02
authored
Dec 28, 2014
by
Christopher Hyzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot the commit() to add the index...fixed.
parent
3fe82d56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
TitanGraphService.java
...rg/apache/hadoop/metadata/services/TitanGraphService.java
+3
-0
No files found.
repository/src/main/java/org/apache/hadoop/metadata/services/TitanGraphService.java
View file @
de47ef02
...
@@ -148,6 +148,7 @@ public class TitanGraphService implements GraphService {
...
@@ -148,6 +148,7 @@ public class TitanGraphService implements GraphService {
PropertyKey
typeName
=
mgmt
.
makePropertyKey
(
"TYPE_NAME"
).
dataType
(
String
.
class
).
make
();
PropertyKey
typeName
=
mgmt
.
makePropertyKey
(
"TYPE_NAME"
).
dataType
(
String
.
class
).
make
();
mgmt
.
buildIndex
(
"byTypeName"
,
Vertex
.
class
).
addKey
(
typeName
).
buildCompositeIndex
();
mgmt
.
buildIndex
(
"byTypeName"
,
Vertex
.
class
).
addKey
(
typeName
).
buildCompositeIndex
();
/* More attributes from the Hive bridge.
/* More attributes from the Hive bridge.
PropertyKey ownerName = mgmt.makePropertyKey("OWNER_NAME").dataType(String.class).make();
PropertyKey ownerName = mgmt.makePropertyKey("OWNER_NAME").dataType(String.class).make();
...
@@ -165,6 +166,8 @@ public class TitanGraphService implements GraphService {
...
@@ -165,6 +166,8 @@ public class TitanGraphService implements GraphService {
PropertyKey comment = mgmt.makePropertyKey("COMMENT").dataType(Integer.class).make();
PropertyKey comment = mgmt.makePropertyKey("COMMENT").dataType(Integer.class).make();
mgmt.buildIndex("byComment",Vertex.class).addKey(comment).buildCompositeIndex();
mgmt.buildIndex("byComment",Vertex.class).addKey(comment).buildCompositeIndex();
*/
*/
mgmt
.
commit
();
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment