Tabnine Logo
XJoinChain.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
org.apache.lens.api.metastore.XJoinChain

Best Java code snippets using org.apache.lens.api.metastore.XJoinChain.setName (Showing top 8 results out of 315)

origin: org.apache.lens/lens-api

@Override
public XJoinChain withName(String value) {
  setName(value);
  return this;
}
origin: apache/lens

@Override
public XJoinChain withName(String value) {
  setName(value);
  return this;
}
origin: org.apache.lens/lens-cube

/**
 * Create XJoinChain from cube join chain
 */
public static XJoinChain getXJoinChainFromJoinChain(JoinChain jc) {
 XJoinChain xjc = XCF.createXJoinChain();
 xjc.setName(jc.getName());
 xjc.setDescription(jc.getDescription());
 xjc.setDisplayString(jc.getDisplayString());
 xjc.setDestTable(jc.getDestTable());
 xjc.setPaths(new XJoinPaths());
 for (JoinChain.Path path : jc.getPaths()) {
  xjc.getPaths().getPath().add(xJoinPathFromJoinPath(path));
 }
 return xjc;
}
origin: apache/lens

/**
 * Create XJoinChain from cube join chain
 */
public static XJoinChain getXJoinChainFromJoinChain(JoinChain jc) {
 XJoinChain xjc = XCF.createXJoinChain();
 xjc.setName(jc.getName());
 xjc.setDescription(jc.getDescription());
 xjc.setDisplayString(jc.getDisplayString());
 xjc.setDestTable(jc.getDestTable());
 xjc.setPaths(new XJoinPaths());
 for (JoinChain.Path path : jc.getPaths()) {
  xjc.getPaths().getPath().add(xJoinPathFromJoinPath(path));
 }
 return xjc;
}
origin: apache/lens

private void testJoinChains(LensDimensionCommands command) {
 XJoinChains chains = new XJoinChains();
 XJoinChain chain1 = new XJoinChain();
 chain1.setPaths(new XJoinPaths());
 XJoinPath path = new XJoinPath();
 path.setEdges(new XJoinEdges());
 XJoinEdge edge1 = new XJoinEdge();
 XTableReference ref1 = new XTableReference();
 ref1.setTable("test_dim");
 ref1.setColumn("d2id");
 XTableReference ref2 = new XTableReference();
 ref2.setTable("test_detail");
 ref2.setColumn("id");
 edge1.setFrom(ref1);
 edge1.setTo(ref2);
 path.getEdges().getEdge().add(edge1);
 chain1.setName("dim2chain");
 chain1.getPaths().getPath().add(path);
 chain1.setDestTable("test_detail");
 chains.getJoinChain().add(chain1);
 assertEquals(command.showJoinChains("test_dim"), new XJoinChainTable(chains).toString());
}
origin: apache/lens

edge1.setTo(ref2);
path.getEdges().getEdge().add(edge1);
chain1.setName("testdetailchain");
chain1.getPaths().getPath().add(path);
chain1.setDestTable("test_detail");
edge2.setTo(ref4);
path2.getEdges().getEdge().add(edge2);
chain2.setName("testdimchain");
chain2.getPaths().getPath().add(path2);
chain2.setDestTable("test_dim");
origin: apache/lens

xj1.setName("chain1");
xj1.setDescription("first chain");
xj1.setDisplayString("Chain-1");
origin: apache/lens

xj1.setName("chain1");
xj1.setDescription("first chain");
xj1.setDisplayString("Chain-1");
xj2.setName("dim2chain");
xj2.setDescription("testdim2 chain");
xj2.setDisplayString("Chain-2");
org.apache.lens.api.metastoreXJoinChainsetName

Popular methods of XJoinChain

  • getPaths
    Gets the value of the paths property.
  • setPaths
    Sets the value of the paths property.
  • <init>
  • setDescription
  • setDestTable
    Sets the value of the destTable property.
  • setDisplayString
  • getDescription
  • getDestTable
    Gets the value of the destTable property.
  • getDisplayString
  • getName
  • append
  • appendFields
  • append,
  • appendFields,
  • equals,
  • hashCode,
  • setTags

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now