19 package com.mysql.clusterj.bindings;
21 import com.mysql.cluster.ndbj.NdbIndex;
22 import com.mysql.clusterj.core.store.Index;
23 import com.mysql.clusterj.core.util.I18NHelper;
24 import com.mysql.clusterj.core.util.Logger;
25 import com.mysql.clusterj.core.util.LoggerFactoryService;
30 class IndexImpl
implements Index {
33 static final I18NHelper local = I18NHelper
34 .getInstance(ClusterTransactionImpl.class);
37 static final Logger logger = LoggerFactoryService.getFactory()
38 .getInstance(ClusterTransactionImpl.class);
40 private NdbIndex ndbIndex;
45 this.ndbIndex =
index;
49 public boolean isHash() {
50 return NdbIndex.Type.UniqueHashIndex == ndbIndex.getType();
53 public boolean isUnique() {
54 return NdbIndex.Type.UniqueHashIndex == ndbIndex.getType();