bulkimport/src/main/java/com/microsoft/azure/documentdb/bulkimport/DocumentAnalyzer.java
public static PartitionKeyInternal extractPartitionKeyValue(String documentAsString,
            PartitionKeyDefinition partitionKeyDefinition)  {

        if (partitionKeyDefinition == null || partitionKeyDefinition.getPaths().size() == 0) {
            return PartitionKeyInternal.getEmpty();
        }

        return DocumentAnalyzer.extractPartitionKeyValueInternal(documentAsString, partitionKeyDefinition);
    }
public static PartitionKeyInternal extractPartitionKeyValue(String documentAsString,
            PartitionKeyDefinition partitionKeyDefinition)  {

        if (partitionKeyDefinition == null || partitionKeyDefinition.getPaths().size() == 0) {
            return PartitionKeyInternal.getEmpty();
        }

        return DocumentAnalyzer.extractPartitionKeyValueInternal(documentAsString, partitionKeyDefinition);
    }
public static PartitionKeyInternal extractPartitionKeyValue ( String documentAsString , PartitionKeyDefinition partitionKeyDefinition ) { if ( partitionKeyDefinition == null || partitionKeyDefinition . getPaths ( ) . size ( ) == 0 ) { return PartitionKeyInternal . getEmpty ( ) ; } return DocumentAnalyzer . extractPartitionKeyValueInternal ( documentAsString , partitionKeyDefinition ) ; }
Extracts effective {@link PartitionKeyInternal} from serialized document.
@param documentAsString Serialized document to extract partition key value from.
@param partitionKeyDefinition Information about partition key.
@return PartitionKeyInternal
Extracts effective {