Package com.mapr.fs.tables.impl
Class ExtIndexDescImpl
- java.lang.Object
-
- com.mapr.fs.tables.impl.ExtIndexDescImpl
-
- All Implemented Interfaces:
ExtIndexDesc
public final class ExtIndexDescImpl extends java.lang.Object implements ExtIndexDesc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtIndexDescImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCluster()Returns the cluster identifier of the system.java.lang.StringgetConnectionString()For the external system that supports it, returns the connection string,nullfor native secondary indexes.java.util.Collection<ExtIndexFieldDesc>getCoveredFields()Returns a collection of covered fields that are stored in this Index but are not indexed.java.util.List<ExtIndexFieldDesc>getIndexedFields()Returns an ordered list of field descriptors which are indexed.java.lang.StringgetIndexFid()Returns secondary index table FID.java.lang.StringgetIndexName()Returns the fully qualified, canonical name of the index, e.g.java.lang.StringgetPrimaryTablePath()Returns primary table path.java.lang.StringgetSystem()Returns the name descriptor of the system where the index is hosted, e.g.booleanisDisabled()Returnstrueif the index is disabled.booleanisExternal()Returnstrueif the index is not a native MapR-DB index.booleanisUnique()Returnstrueif the values of the indexed field or the combination of fields in case of composite index, are unique across all documents in the table.java.lang.StringtoString()
-
-
-
Method Detail
-
getIndexedFields
public java.util.List<ExtIndexFieldDesc> getIndexedFields()
Description copied from interface:ExtIndexDescReturns an ordered list of field descriptors which are indexed. For single field indexes, this list contains exactly one element while for composite indexes, it will contain one element for each field in the composite index, in the order they appear in the index.- Specified by:
getIndexedFieldsin interfaceExtIndexDesc
-
getCoveredFields
public java.util.Collection<ExtIndexFieldDesc> getCoveredFields()
Description copied from interface:ExtIndexDescReturns a collection of covered fields that are stored in this Index but are not indexed.- Specified by:
getCoveredFieldsin interfaceExtIndexDesc
-
isUnique
public boolean isUnique()
Description copied from interface:ExtIndexDescReturnstrueif the values of the indexed field or the combination of fields in case of composite index, are unique across all documents in the table.- Specified by:
isUniquein interfaceExtIndexDesc
-
isExternal
public boolean isExternal()
Description copied from interface:ExtIndexDescReturnstrueif the index is not a native MapR-DB index.- Specified by:
isExternalin interfaceExtIndexDesc
-
isDisabled
public boolean isDisabled()
Description copied from interface:ExtIndexDescReturnstrueif the index is disabled.- Specified by:
isDisabledin interfaceExtIndexDesc
-
getPrimaryTablePath
public java.lang.String getPrimaryTablePath()
Description copied from interface:ExtIndexDescReturns primary table path.- Specified by:
getPrimaryTablePathin interfaceExtIndexDesc
-
getIndexFid
public java.lang.String getIndexFid()
Description copied from interface:ExtIndexDescReturns secondary index table FID.- Specified by:
getIndexFidin interfaceExtIndexDesc
-
getIndexName
public java.lang.String getIndexName()
Description copied from interface:ExtIndexDescReturns the fully qualified, canonical name of the index, e.g. path of the native secondary index in MapR-DB. For external secondary indexes, the format will be dependent on the external system.- Specified by:
getIndexNamein interfaceExtIndexDesc
-
getSystem
public java.lang.String getSystem()
Description copied from interface:ExtIndexDescReturns the name descriptor of the system where the index is hosted, e.g. "maprdb" for native secondary index.- Specified by:
getSystemin interfaceExtIndexDesc
-
getCluster
public java.lang.String getCluster()
Description copied from interface:ExtIndexDescReturns the cluster identifier of the system.- Specified by:
getClusterin interfaceExtIndexDesc
-
getConnectionString
public java.lang.String getConnectionString()
Description copied from interface:ExtIndexDescFor the external system that supports it, returns the connection string,nullfor native secondary indexes.- Specified by:
getConnectionStringin interfaceExtIndexDesc
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-